Get the App
SLTechnology News&Howtos  ›  Development  › 

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

Shulou Source: shulou.com Published: 2022-06-03 08:30:33 11月15日 Update

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!

Tags: Commands contents methods more articles good practical articles read knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS MySQL OPPO Reno Docker