Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SHELL to DOS

Status
Not open for further replies.

TJay

Programmer
Nov 25, 1998
14
0
0
US
I've got an old Visual Basic for DOS front end program that SHELL's to DOS and runs a QBASIC program and some bat files and then returns to the main screen.<br>
When a try this in Visual Basic 6 with the same SHELL command it runs the QBASIC program but minimizes the run and it doesn't return to the main screen when complete. <br>
What is the specific command in VB6 to SHELL to DOS ( preferably run the DOS programs in the backround ) and then return to the main VB6 screen?<br>
Current VB for DOS example: SHELL &quot;myqbprog.exe&quot;
 
Hi TJay!<br>
<br>
You need to make a call to a Win32 api function called ShellExecute. Very powerful function -- not only can you run programs, but you can also cause the default web browser to go to a URL (great for sending user's to a FAQ page on your website, or to have them register their purchase, etc.)<br>
<br>
You can find out how to use it in the MSDN library, or get the short version from the api viewer.<br>
<br>
Chip H.<br>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top