How to run a dos program in VB.net

  • Thread starter Thread starter Vincent
  • Start date Start date
Hi Vincent,

Dim sYourCommand As String = "Vincent.exe"
Process.Start ("cmd.exe", "/c " & sYourCommand)

For more command-line options, you can go to a Dos Box and type
cmd /?

Regards,
Fergus
 
* "Vincent said:
In the VB.net program, I want to launch a dos program.
What can I do ?

You can start the executable with 'System.Diagnostics.Process.Start'.
 
Back
Top