可以生成SLEEP.EXE的延时命令的bat文件
(编辑:jimmy 日期: 2024/11/15 浏览:3 次 )
复制代码 代码如下:
:: 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;ovBX2Gv0ExGIuht6sleep.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@pjirzsleep.com
echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkksleep.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??Rsleep.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?DJTSDMsleep.com
echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcTsleep.com
echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EHsleep.com
echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?OHROL?Kj??pd~aN?OHROd?Gsleep.com
echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0xsleep.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;ovBX2Gv0ExGIuht6sleep.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@pjirzsleep.com
echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkksleep.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??Rsleep.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?DJTSDMsleep.com
echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcTsleep.com
echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EHsleep.com
echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?OHROL?Kj??pd~aN?OHROd?Gsleep.com
echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0xsleep.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
:: 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;ovBX2Gv0ExGIuht6sleep.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@pjirzsleep.com
echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkksleep.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??Rsleep.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?DJTSDMsleep.com
echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcTsleep.com
echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EHsleep.com
echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?OHROL?Kj??pd~aN?OHROd?Gsleep.com
echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0xsleep.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;ovBX2Gv0ExGIuht6sleep.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@pjirzsleep.com
echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkksleep.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??Rsleep.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?DJTSDMsleep.com
echo QTqrK@kcmSULkPcLOOuLOOFUO?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcTsleep.com
echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EHsleep.com
echo {zpQpKGk?Jbs?FqokOH{T?jPvP@IQBDFAN?OHROL?Kj??pd~aN?OHROd?Gsleep.com
echo Q??PGT~B??OC~?ipO?T?~U?p~cUo0xsleep.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
下一篇:用批处理解决数学问题的代码第1/4页