欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Bat通过更改时间启动应用程序示例 2009-09-03 12:50:13标签:.bat 更改时间

程序员文章站 2024-01-22 20:01:22
...
---------------------------------------
@echo off 
SETLOCAL
::Standard commission
SET _date=%date%
echo %_date%


::Premium commission
SETLOCAL 
date 2005-1-1
cd "D:\Program Files\SAS\SAS 9.1"
start sas.exe


:: 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 [email protected]`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.com
echo 0DxFP,0Xx.t0P,[email protected]$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>sleep.com
echo T}{[email protected]@OEKcUt`~}@[email protected]`[email protected]?>>sleep.com
echo [email protected]@[email protected]@[email protected][email protected]>>sleep.com
echo [email protected]@[email protected][email protected]{[email protected]}IKuNWpe~FpeQFwH?Vkk>>sleep.com
echo _GSqoCvH{[email protected][email protected]=>>sleep.com
echo EsOgwTLbLK?sFU`[email protected]@[email protected][email protected][email protected]?UA??O}HCQOQ??R>>sleep.com
echo [email protected]?>>sleep.com
echo dsmSQswDOR[[email protected]?UOQ?DJTSDM>>sleep.com
echo [email protected]?hwDTqOsTdbnTQrrDsdFTlnBTm`lThKcT>>sleep.com
echo @dmTkRQSoddTT~?K?OCOQp?o??Gds?wOw?PGAtaCHQvNntQv_w?A?it\EH>>sleep.com
echo {zpQpKGk?Jbs?FqokOH{[email protected]?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


::back to Standard commission
ENDLOCAL
echo %_date% 
date %_date%
--------------------------------------------------------
其中延迟是为了让start有足够时间在更改的时间内启动