Run DOS Commands without DOS Window Popping Up

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
 
S

Sunny

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

So, in StartInfo there is a property CreateNoWindow.

Sunny
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top