1. bat程序: restartProxify.bat
@echo off taskkill /f /im Proxifier.exe cd / cd "C:\Program Files (x86)\Proxifier" Proxifier.exe echo 成功重启 Proxifier.exe 程序 exit
2. 每一分钟执行 restartProxify.bat 程序一次
schtasks /create /tn han1 /tr D:\MINTOOL\dostop\restartProxify.bat /sc minute /mo 1
3. 删除定时任务
schtasks /delete /tn han1 /f
4. 查看定时任务
schtasks /query /tn han1
schtasks /create /tn han1 /tr D:\MINTOOL\dostop\restartProxify.bat /sc minute /mo 1