bat延时执行命令的另一种方法
bat延时执行命令的另一种方法
发布时间:2016-12-28 来源:查字典编辑
摘要:第一种方法:复制代码代码如下:ping127.0.0.1-n5000>nuldirc:>c:1.txt延时5分钟后执行dirc:第二种方法复...

第一种方法:

复制代码 代码如下:

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 Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.com

echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>sleep.com

echo T}{z~~@GwkBG@OEKcUt`~}@MqqBsy?seHB~_Phxr?@zAB`LrPEyoDt@Cj?>>sleep.com

echo pky_jN@QEKpEt@ij?jySjN@REKpEt@jj?jyGjN@SEKkjtlGuNw?p@pjirz>>sleep.com

echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkk>>sleep.com

echo _GSqoCvH{OjeOSeIQRmA@KnEFB?p??mcjNne~B?M??QhetLBgBPHexh@e=>>sleep.com

echo EsOgwTLbLK?sFU`?LDOD@@K@xO?SUudA?_FKJ@N?KD@?UA??O}HCQOQ??R>>sleep.com

echo _OQOL?CLA?CEU?_FU?UAQ?UBD?LOC?ORO?UOL?UOD?OOI?UgL?LOR@YUO?>>sleep.com

echo dsmSQswDOR[BQAQ?LUA?_L_oUNUScLOOuLOODUO?UOE@OwH?UOQ?DJTSDM>>sleep.com

echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcT>>sleep.com

echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?itEH>>sleep.com

echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?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

新方法:

还有一种办法,呵呵

复制代码 代码如下:

dir c: & timeout /t 10 & dir d:

延时10秒

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新DOS/BAT学习
热门DOS/BAT学习
脚本专栏子分类