在批处理文件的末尾添加什么命令可以防止文件执行后自动关闭控制台?
发布于 2009-06-12 18:59:33
在Windows/DOS批处理文件中:
pause
这将打印一条漂亮的"Press any key to continue . . . "
消息
或者,如果您不需要"Press any key to continue . . ."
消息,请执行以下操作:
pause >nul
发布于 2016-10-06 03:42:24
以下将命令放入批处理文件的方法将打开新的命令提示符窗口,并且新窗口不会自动退出。
start "title" call abcd.exe param1 param2
start "title" call xyz.exe param1 param2
发布于 2014-11-16 22:12:48
在要执行的代码下面添加cmd.exe
作为新行:
c:\Python27\python D:\code\simple_http_server.py
cmd.exe
https://stackoverflow.com/questions/988403
复制相似问题