Visual Basic 6
How to call and open other .exe programms from a visual basic program. The .exe program should be visible and operatable after opening
Printable View
Visual Basic 6
How to call and open other .exe programms from a visual basic program. The .exe program should be visible and operatable after opening
Use the Shell() statement
hi,
use shell("notepad.exe")
Also add after the program path the vbNormalFocus.
For example :
VB Code:
Shell "notepad", vbNormalFocus
I can shellexecute out and run a command okay but how do I halt execution of my code until the exe has finished running?
The shell process might take up to 30 seconds. I need to know when that process copmletes so I can continue with the results of that process.
I'm calling the external process from a MS Access 97 module. The external process is a VB.Net console program written in-house. I can change the console program if need be.
Too hard?
I think this thread should help.
Also, these examples may be useful.