During the execution of my vb program I would like to run an executable that I have on my C drive. What code can I use to cause the VB program to run a seperate executable stored under the name DoSomething.exe
thanks
Printable View
During the execution of my vb program I would like to run an executable that I have on my C drive. What code can I use to cause the VB program to run a seperate executable stored under the name DoSomething.exe
thanks
shell "c:\dosomething.exe"
Be sure to put that in an error catching block:
VB Code:
On Error Goto Nooooooooooooo Shell "c:\dostuffdarnit.exe", vbNormalFocus Exit Sub ' or Exit Function Nooooooooooooo: Msgbox "NEXT TIME RUN A PROGRAM THAT EXISTS, YOU DUMMY!"