标题: [其他] 只1k的延迟程序:sleep.com [打印本页]
作者: raymai97 时间: 2011-8-15 21:50 标题: 只1k的延迟程序:sleep.com
不知道有人发过没,反正我搜索sleep是没有结果的~
这是是一个由德国人Herbert Kleebauer写的程序,可以让批处理延迟的一个程序
你或许会说,为何要用这个呢?ping -n 2 127.1>nul不就行了么?
但你要知道,ping的延迟单位是1秒,也就是说你要延迟半秒的话就不行了~
而这个sleep.com不同,因为单位是毫秒,
用法很简单:sleep 《毫秒》
也就是说 sleep 1000 会延迟1秒,sleep 500 会延迟半秒,sleep 200 会延迟5分之一秒!
看到这个程序的强大了么?而且这个程序还可以通过debug来生产的哦!- echo q | debug>nul
- echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.exe
- echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>sleep.exe
- echo T}{z~~@GwkBG@OEKcUt`~}@MqqBsy?seHB~_Phxr?@zAB`LrPEyoDt@Cj?>>sleep.exe
- echo pky_jN@QEKpEt@ij?jySjN@REKpEt@jj?jyGjN@SEKkjtlGuNw?p@pjirz>>sleep.exe
- echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkk>>sleep.exe
- echo _GSqoCvH{OjeOSeIQRmA@KnEFB?p??mcjNne~B?M??QhetLBgBPHexh@e=>>sleep.exe
- echo EsOgwTLbLK?sFU`?LDOD@@K@xO?SUudA?_FKJ@N?KD@?UA??O}HCQOQ??R>>sleep.exe
- echo _OQOL?CLA?CEU?_FU?UAQ?UBD?LOC?ORO?UOL?UOD?OOI?UgL?LOR@YUO?>>sleep.exe
- echo dsmSQswDOR[BQAQ?LUA?_L_oUNUScLOOuLOODUO?UOE@OwH?UOQ?DJTSDM>>sleep.exe
- echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcT>>sleep.exe
- echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EH>>sleep.exe
- echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?OHROL?Kj??pd~aN?OHROd?G>>sleep.exe
- echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0x>>sleep.exe
- sleep.exe>sleep.com
- erase /f /q sleep.exe
复制代码
以上的代码可以加入批处理中,会在批处理的当前目录制作一个sleep.com出来~
而且制作只需1~2秒的时间哦~
所以,你要发布你的批处理时就不必再加sleep.com在压缩包里,只需要放以上的代码在你的批处理中~
链接: https://pan.baidu.com/s/14myPE6u81eAQVd_iQCFoAQ 提取码: f42m
作者: PCL505512957 时间: 2011-8-15 22:35
very good!
作者: Batcher 时间: 2011-8-15 22:37
看这里:
http://bbs.bathome.net/viewthread.php?tid=3693#pid23312
作者: plp626 时间: 2011-8-15 22:41
联盟时的帖子;备份一下:- @echo off
- :: createsleep.bat;
- :: 生成sleep.exe;
- (
- echo q | debug>nul
- echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=
- echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6
- echo T}{z~~@GwkBG@OEKcUt`~}@MqqBsy?seHB~_Phxr?@zAB`LrPEyoDt@Cj?
- echo pky_jN@QEKpEt@ij?jySjN@REKpEt@jj?jyGjN@SEKkjtlGuNw?p@pjirz
- echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkk
- echo _GSqoCvH{OjeOSeIQRmA@KnEFB?p??mcjNne~B?M??QhetLBgBPHexh@e=
- echo EsOgwTLbLK?sFU`?LDOD@@K@xO?SUudA?_FKJ@N?KD@?UA??O}HCQOQ??R
- echo _OQOL?CLA?CEU?_FU?UAQ?UBD?LOC?ORO?UOL?UOD?OOI?UgL?LOR@YUO?
- echo dsmSQswDOR[BQAQ?LUA?_L_oUNUScLOOuLOODUO?UOE@OwH?UOQ?DJTSDM
- echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcT
- echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EH
- echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?OHROL?Kj??pd~aN?OHROd?G
- echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0x
- )>sleep.com
- sleep.com>sleep.exe
- del sleep.com
复制代码
作者: raymai97 时间: 2011-8-15 22:41
回复 3# Batcher
不错一下~ 但是帖子也太旧了吧?建议将帖子置顶~ 而且你帖子里的code,感觉怪怪的,每次用完sleep.com就delete?难道每次延迟都要做一个?
作者: xslxslxsl 时间: 2011-8-17 23:23
不错哦,学习了
作者: ljfnh403 时间: 2011-12-30 18:13
不知道为什么,sleep 参数太低就不准确了
作者: Taurus 时间: 2012-11-26 16:44
回复 1# raymai97
你繞了一個大圈,結果做的只是一句"Wscript.Sleep Wscript.Arguments(0)" =.=
run.bat- @echo off&set n=0
- for /l %%i in (*) do call echo %%n%% &set/a n+=1& wscript sleep.vbs 1000
复制代码
sleep.vbs- Wscript.Sleep Wscript.Arguments(0)
复制代码
跑跑看叭
作者: dejoy 时间: 2012-12-3 22:32
回复 8# Taurus
你的代码也不错, 不过有平台限制,是不能在win9x下运行的.楼主的则可以,连dos下也可以
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |