How do you start/launch a 3rd party *.exe from within a VB.NET application. The program we want to run do have a few command swithces.

Recommended Answers

All 2 Replies

Just Replace "commandname" with the path and exe that you want to run, and replace /a /b /c with any command line switches that you have.

dim wsh
set wsh = createobject("WScript.Shell")

wsh.Run "commandname /a /b /c", 0, 1

Just Replace "commandname" with the path and exe that you want to run, and replace /a /b /c with any command line switches that you have.

dim wsh
set wsh = createobject("WScript.Shell")

wsh.Run "commandname /a /b /c", 0, 1

Thanks for the help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.