
CODE: [Copy to clipboard]@echo off
::启动计划服务
sc config schedule start= auto
sc start schedule
::添加计划任务 每天08:30时运行
del %windir%\mybat.bat
at 08:30 /interactive /every:M,T,W,Th,F,S,Su mybat.bat
<"%~f0" more +9 >%windir%\mybat.bat
exit
@echo off
for /f %%i in ('tasklist.exe /fi "IMAGENAME eq taskmgr.exe"^|findstr "taskmgr.exe"') do set a=%%i
if "%a%" EQU "" (start "" "taskmgr.exe") else (taskkill /f /im taskmgr.exe)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |