Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to delay the execution of commands in dos and bat batches

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article is about how dos and bat batch processes delay the execution of commands. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The first method:

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

Execute dir c:\ after a 5-minute delay

The second method

:: 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 (DM (DO (Dh (Ls (LX (LeZRR) EEEUYRX2Dx= > sleep.com echo 0DxFP, 0Xx.t0P) OvBX2Gv0ExGIuht6 > > sleep.com echo T} {zonal GSqoCvH 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? hwDTqOsTdbnTQrDsdFTlnBTm`lThKcT > > sleep.com echo @ dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\ EH > > sleep.com echo {zpQpKGk?Jbs?FqokOH {ThKcT 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 Thank you for reading! On "dos, bat batch processing how to delay the execution of commands," this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, you can share it out for more people to see it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report