直接上代码
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延时。不知道说的是否正确。