bat 延时执行命令

鬼仔注:以前只知道第一种方法。

来源:vbs小铺

第一种方法:

ping 127.0.0.1 -n 5000>nul
dir c:\ >c:\1.txt

延时5分钟后执行dir c:\

第二种方法

:: Sleep.bat – Sleep/Delay/Wait n seconds
:: Herbert Kleebauer(Germany) – 2005/05/29
:: Modified by Will Sort – 2005/06/02
@echo off
echo q | debug>nul
echo [email protected]`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.com
echo 0DxFP,0Xx.t0P,[email protected]$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>sleep.com
echo T}{[email protected]@OEKcUt`~}@[email protected]`[email protected]?>>sleep.com
echo [email protected]@[email protected]@[email protected][email protected]>>sleep.com
echo [email protected]@[email protected][email protected]{[email protected]}IKuNWpe~FpeQFwH?Vkk>>sleep.com
echo _GSqoCvH{[email protected][email protected]=>>sleep.com
echo EsOgwTLbLK?sFU`[email protected]@[email protected][email protected][email protected]?UA??O}HCQOQ??R>>sleep.com
echo [email protected]?>>sleep.com
echo dsmSQswDOR[[email protected]?UOQ?DJTSDM>>sleep.com
echo [email protected]?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcT>>sleep.com
echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EH>>sleep.com
echo {zpQpKGk?Jbs?FqokOH{[email protected]?OHROL?Kj??pd~aN?OHROd?G>>sleep.com
echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0x>>sleep.com
sleep.com>sleep.exe
del sleep.com
echo wait 2 seconds:
sleep.exe 2000

相关日志

发表评论