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 implement a bat file that can generate SLEEP.EXE delay commands

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Editor to share with you how to generate SLEEP.EXE delay command bat file, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The code is as follows:

:: 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 (Lu (LX (LeZRR) EEEUYRX2Dx= > sleep.com)

Echo 0DxFP, 0Xx.t0P, XtGsB4odyne, PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6 > > sleep.com

Echo T} {zealots 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 {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

-

Current path:% ~ dp0

Time format replacement:

Set new=%time:5=..%, echo new:~0,5%

(where time: is the format, and 5 is the content to be replaced. For the content to be replaced)

-

@ echo off

Net start mysql

Rem delay two seconds

Echo Q | debug > nul

Echo Bj@ jzh`0X-`/ PPPPPPa (DE (DM (DO) Dh (Lu (LX (LeZRR) EEEUYRX2Dx= > sleep.com)

Echo 0DxFP, 0Xx.t0P, XtGsB4odyne, PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6 > > sleep.com

Echo T} {zealots 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 {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

Rem initialization

Set bkdir=D:\ Downloads\ Mine\ moujie\ Backup\

Set db=mysql_6

Set proj=Proj_eclip

Echo _

Echo init

Echo

Set ndate=%date:~4,7%

Echo ndate%

Set ntime1=%date:~6,8%

Echo ntime1%

Set ntime2=%time:~0,8%

Set ntime2=%ntime2::=%

Set ntime2=%ntime2: = 0%

Echo ntime2%

Set sytime=%ntime1%_%ntime2%

Echo sytime%

Rem create month folder

Echo _

Echo path

Echo

Set dbmonthdir=%bkdir%%db%\% ndate%

Echo dbmonthdir%

Set projtimedir=%bkdir%%proj%\% ndate%\% sytime%

Echo projtimedir%

If not exist dbmonthdir% (md dbmonthdir%)

If not exist projtimedir% (md projtimedir%)

Set newsqlpath=%dbmonthdir%\% sytime%.sql

Echo newsqlpath%

Rem output

Echo _

Echo cout

Echo

"D:\ Program Files\ MySQL\ MySQL Server 6.0\ bin\ mysqldump.exe"-uroot-p123 moujie >% newsqlpath%

Xcopy "D:\ Program Files\ MyEclipse 6.5\ workspace\ moujie"% projtimedir% / S / E / H / Q

Rem deconstruction

Echo _

Echo Destroy

Echo-

Net stop mysql

Del sleep.exe

-

@ echo off

Set destdir=D:\ Downloads\ Mine\ Sys\ Mine_Launch

Echo _

Echo start?

Echo-

Pause

If exist destdir% (rd destdir% / S / Q)

If not exist destdir% (md destdir%)

Xcopy "C:\ Documents and Settings\ Administrator\ Application Data\ Microsoft\ Internet Explorer\ Quick Launch"% destdir% / S / E / H / Q

The above is all the contents of the article "how to implement the bat file that can generate SLEEP.EXE delay commands". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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