Windows bat 命令 start /wait 失效问题
start /wait 失效问题
·
在 Windows Server 2012 R2 上使用 start /wait 等待新创建的批处理文件执行结束时,没有生效。在 Windows 10 上测试是没问题的。
start /WAIT /B 1.bat
参考 Windows start /wait /b NOT working,需要将 /WAIT 和 /B 交换位置,应该是 start 的一个bug。
start /B /WAIT 1.bat
ps:为什么需要在 Windows Server 2012 R2 上运行 start 呢,因为项目 Windows 版本的打包机是这个系统。
更多推荐




所有评论(0)