How to run a dos program in VB.net

F

Fergus Cooney

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
 
H

Herfried K. Wagner [MVP]

* "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'.
 

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