Run DOS Commands Without DOS Window Popping Up

  • Thread starter Thread starter Jason Moss
  • Start date Start date
J

Jason Moss

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
 
In Greg Young's post, would the variable strOut be the output from the
command (In that case, FTP.exe?)
 
yes it would be although for a "real" situation you would most likely want
to use threads to actively read/write the other program.
 
Back
Top