bat延时执行命令的另一种方法


第一种方法:

复制代码 代码如下:

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?it\EH>>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秒



相关阅读:
HTML文档中小meta标签的大作用
linux查看系统时间命令
php 仿Comsenz安装效果代码打包提供下载
php 5.3.5安装memcache注意事项小结
JS读取cookies信息(记录用户名)
Webjx分享非常棒的国外的jQuery教程
在Framework4.0中实现延迟加载的实现方法
oracle关于加锁的讨论
ubuntu 9.10 更换登录界面的方法
实现窄屏/宽屏的切换——给宽屏用户超值享受
纯css完美解决图片在div内垂直水平居中
用vbs列出机器上所有能调用的组件
设置DropDownList的当前选项
方便实用的PHP生成静态页面类(非smarty)
快速导航

Copyright © 2016 phpStudy | 皖ICP备18014864号-4