Run DOS Commands without DOS Window Popping Up

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

These lines of code:

Imports System.Diagnostics.Process
Start("subst I: D:\FakeFolder1")

Will start the DOS command subst, but the problem is the DOS window will popup temporarily. This looks unprofessional in my application, and I was wondering how I could stil run the command without the DOS window.

-Jason
 
Look at StartInfo class. An object of this class is set as
process.StartInfo.

So, in StartInfo there is a property CreateNoWindow.

Sunny
 
Back
Top