[Dos]修改系統時間啓動,關閉後重置

@echo off
::if "%1"=="h" goto begin 
::start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)
SET y=%date:~0,4% 
SET m=%date:~5,2% 
SET d=%date:~8,2% 
ECHO %y%/%m%/%d%
date 2012/02/02


tasklist /nh >1.txt
find /i "Crownpc.exe" 1.txt
if ERRORLEVEL 1 (start /wait Crownpc.exe) else (goto msg)




del 1.txt
date %y%/%m%/%d%
::pause
exit
:msg
start mshta vbscript:msgbox("程序已經啓動",48,"Error")(window.close)
date %y%/%m%/%d%
::pause
exit

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章