USEGEAR

导航

古老的BAT文件在windows下的编辑

直接上代码

rem echo choice /t 20 /d y /n >nul
rem start/d "E:\service\exe" 8091.exe 8091

start "E:\service\shortcut" 8091.lnk
echo choice /t 20 /d y /n >nul
start "E:\service\shortcut" 8092.lnk
echo choice /t 20 /d y /n >nul
start "E:\service\shortcut" 8093.lnk
echo choice /t 20 /d y /n >nul
start "E:\service\shortcut" 8094.lnk
echo choice /t 20 /d y /n >nul
start "E:\service\shortcut" 8095.lnk
echo choice /t 20 /d y /n >nul
start "E:\service\shortcut" 8096.lnk
echo choice /t 2 /d y /n >nul
start "E:\service\shortcut" 10000.lnk
echo choice /t 20 /d y /n >nul
start "E:\service\shortcut" 10001.lnk

应该由于高速处理能力,导致系列批处理太快而出现错误。通过增加echo choic /t 20 /d y /n >nul延时。不知道说的是否正确。

timeout  /T 5看看。就是延时5s

posted on 2019-11-22 17:41  USEGEAR  阅读(176)  评论(0编辑  收藏  举报