English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Anyone know if there is a way to execute a program from a batch file and then continue executing the batch file?

I tried executing the program from a separate batch file and using "Call" to call that batch file, but the batch job just waits for this program to be closed before continuing.

I need the program to execute and remain running while the batch file continues...

2007-12-11 03:54:53 · 2 answers · asked by Shwaa 6 in Computers & Internet Programming & Design

2 answers

The "start" command is a good suggestion. You can execute "cmd" as an option and use the "/c" switch to terminate the child window when that process finishes. To cut through the 'start' syntax a little, you can simply use the following command to start a separate command window and run a batch file called "batchname.bat" in this example,

start cmd /c batchname.bat

2007-12-11 12:49:46 · answer #1 · answered by Kevin 7 · 5 1

try the start command.

c:\>start /?
Starts a separate window to run a specified program or command.

START ["title"] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/AFFINITY ] [/WAIT] [/B] [command/program]
[parameters]

...

2007-12-11 08:56:25 · answer #2 · answered by Gary M 2 · 0 0

fedest.com, questions and answers