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

后端 未结 8 2122
囚心锁ツ
囚心锁ツ 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:17

    to run a python file in a new cmd window with spaces in the file name:

    start cmd.exe /k python "C:\Program Files\HelloWorld.py"
    

提交回复
热议问题