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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Background execution of programs in batch/cmd files

Status
Not open for further replies.

oscarin

Technical User
Mar 12, 2003
11
ES
When I execute a program from a batch file in windows 9x based OS (such as notepad.exe, iexplore.exe), this program is launched and the batch process continues (just like when you use & in unix shells).

But when I perform the same task in windows NT based OS, programs runs in foreground mode, that is, batch process stops until you close the program that was executed.

I want to launch several programs in background mode. How can I do it in NT, 2k, XP?

Thanks a lot
 
oscarin,

Check the properties of the shortcut that runs these programs. Look for a MISC tab and untick Background - Always Suspend

Ian

Everyday the Computer Gods pick one person to be "it". Maybe, today is your day !!
 
oscarin,

What programs are you trying to run and how are you starting them ??

Ian

Everyday the Computer Gods pick one person to be "it". Maybe, today is your day !!
 
Oscarin,
you can use the start command in your cmd-file, for example following lines will start notepad, the calculator and internet explorer

start notepad
start iexplore
start calc

To learn more about the start command just type start /? at the command prompt

Martin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top