两种方式:
start cmd /k echo Hello, World! # # 执行完毕以后,新开的窗口不会自动关闭 start cmd /C pause # 执行完毕以后,新开的窗口会自动关闭
参考:https://www.iteye.com/blog/aigo-2295196
参考:http://stackoverflow.com/questions/9392874/bat-file-open-new-cmd-window-and-enter-code-in-there
原文地址:https://www.cnblogs.com/LiuYanYGZ/p/12078984.html
时间: 2024-10-03 19:36:40