Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run a batch file in a new window from batch?

I know it seems this has been asked before, but I need a batch to open another batch in a new window. I've tried:

start abc.bat  cmd abc.bat  run abc.bat 

and others. They've all opened in the same window or just opened Command Prompt in new window, ignoring my batch. Is there a batch command to open a batch file in a new window?

like image 877
Genocide Avatar asked Jun 17 '12 21:06

Genocide


People also ask

How do I run one batch file after another?

Try using the conditional execution & or the && between each command either with a copy and paste into the cmd.exe window or in a batch file. Additionally, you can use the double pipe || symbols instead to only run the next command if the previous command failed.

What is %% A in batch file?

Use double percent signs ( %% ) to carry out the for command within a batch file. Variables are case sensitive, and they must be represented with an alphabetical value such as %a, %b, or %c. ( <set> ) Required. Specifies one or more files, directories, or text strings, or a range of values on which to run the command.


1 Answers

Is this what your after?

start "New Window" cmd /c test.cmd 
like image 134
Andy Morris Avatar answered Sep 24 '22 00:09

Andy Morris