如何让CMD执行一条命令后等待一定时间再执行下一条命令

2024-11-17 07:11:02
推荐回答(2个)
回答(1):

如果要开机多久后关机的话,编个vbs的更好一点. dim wshshell set wshshell=wscript.createobject("wscript.shell") wscript.sleep 1000*600 wshshell.run

回答(2):

@echo off
echo hello
>nul ping 127.1 /10
echo world
pause

::输出hello,延迟10秒后,输出world。

::将/10,改为/100就延迟100秒。举一反三,你懂得……