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

后端 未结 8 2120
囚心锁ツ
囚心锁ツ 2020-11-29 15:52

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 comman

8条回答
  •  抹茶落季
    2020-11-29 16:00

    If I understand you correctly doing this in side your bat file will open Command prompt and print your message to screen.

    cmd.exe hello world
    

    hope this helps.

提交回复
热议问题