本帖最后由 ptsdy 于 2015-2-28 12:21 编辑
- @echo off
- echo 南无佛母大圣准提王菩萨! ! !
- echo 咒曰: 嗡、折隶、主隶、准提、娑哈,嗡部楞 !
- set e=%date%
- set f=%e:~,10%
- set f=%f:/=-%
- set g=%f:-=%
- set h=%g:~3,1%
- set t=%time:~,8%
- set s=%t::=.%
- set "runt=%time:~,5%"
- set "runt=%runt: =0%"
- rem 输入你想运行的时间,0不能省略。
- set st=08:00
- set bh=%st::=.%
- set st=%st%:00
- echo You input the time : "%st%"
- if "%st:~,5%" equ "%runt%" echo.&echo Now executing plan !!!!!!!! & (
- rem 下面写入要定时执行的程序:
- start /de:\网吧客户端 e:\网吧客户端\BarClient.exe
- ) & exit
- rem schtasks /delete /tn * /f
- schtasks /delete /tn "%bh%_Execute" /f 2>nul
- echo.&echo 5秒后开始创建新的任务 ...
- for /l %%i in (1 1 50000) do echo %%i >nul
- schtasks /create /tn "%bh%_Execute" /tr "%~s0" /sc daily /st %st% /ru System
- chcp 437 & schtasks /query | find /i "_Execute"
- echo.&echo.&echo Already finished ! ! !
- (for /l %%i in (1 1 30000) do echo %%i >nul >nul) & chcp 936
复制代码
|