可以生成SLEEP.EXE的延时命令的bat文件
程序员文章站
2022-06-16 15:46:26
复制代码 代码如下::: sleep.bat - sleep/delay/wait n seconds :: herbert kleebauer(germany) - 20...
复制代码 代码如下:
:: 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
-----------------------------------------------------------------------------------------------------------------------
当前路径: %~dp0
时间格式替换:
set new=%time:5=..%, echo %new:~0,5%
(其中time: 为格式, 5为要替换的内容, .. 为要替换成为的内容)
-----------------------------------------------------------------------------------------------------------------------
@echo off
net start mysql
rem 延时两秒
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
rem 初始化
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 建立月份文件夹
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 输出
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 析构
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
上一篇: 一个可以修复 IE浏览器的批处理文件
下一篇: 5个计算天数的批处理代码第1/3页