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!

Batch file

Status
Not open for further replies.
Mar 20, 2003
103
AU
How do I create an EXE file that when executed, will execute two other EXE files from different location?
 
Go in to QBasics help file and lookup the shell function this command is used to execute programs

%, 2004
 
If you plan to creat all three exes, first you will need
QuickBasic rather than Qbasic. QuickBasic has a compiler.

Second, it may be to your advantage to use chain, in that
case, instead of shell "programname.exe"

This will require the runtime library, brun45.exe. This will
however make your programs significantly smaller (since you use brun45.lib instead of bcom45.lib when compiling).

The brun45.exe must be in the folder(s) containing the program to be run.
 
this is the script I currently use for the batch file

REM - execute the two programs for FAXING.
CALL C:\RIP2ESERV.EXE
CALL C:\SENDSERVICE.EXE
EXIT

BUT...its not how I want it to work.
I want RIP2ESERV.EXE and SENSERVICE to execute on separate command windows respectively and stay on. AND the main screen that executes the screen to close after running.
How do I do this? Its running on WINNT.

Thanks
 
Try:

Shell "C:\RIP2ESERV.EXE"
Shell "C:\SENDSERVICE.EXE"

Qbasic is not really meant to do multitasking so you may need to look for a more current (windows) dev platform...

Have Fun, Be Young... Code BASIC
-Josh
cubee101.gif


PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top