第2个回答 2020-08-27
method1: ping 命令是一秒执行一次, -n 代表的次数
C:\Users\Administrator> ping 127.0.0.1 -n 5 && echo hello world!
method2:
C:\Users\Administrator> timeout 5 >nul && echo hello world!
method3:
C:\Users\Administrator> choice /d y /t 5 >nul || echo hello world!