×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Batch file

Batch file

Batch file

(OP)
How do I create an EXE file that when executed, will execute two other EXE files from different location?

RE: Batch file

Go in to QBasics help file and lookup the shell function this command is used to execute programs

%, 2004

RE: Batch file

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.

RE: Batch file

(OP)
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

RE: Batch file

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

http://cubee.topcities.com

PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close