BAT file: Open new cmd window and execute a command in there

I’m trying to open a new command window in a BAT file:

start %windir%\system32\cmd.exe

After it opens, I’d like to execute a BAT command in the new window:

echo "test in new window"

How can I do this?

9 Answers
9

Leave a Comment