Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to start another executable from within a VB program . After this program exits, my VB program will continue.
Posted

Look at this article[^]. I am not sure if you can do it differently.
 
Share this answer
 
VB
Dim wshShell
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run "notepad.exe", 1, True    'Waits here until the program is closed
Set wshShell = Nothing


Before you can use this, you must add a reference to "Microsoft Scripting Runtime" to your project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900