使用window任务计划定时重启程序

计划任务的bat为:
taskkill /f /im regedit.exe
start "" "C:/windows/regedit.exe"
schtasks /end /tn RestartMailService
这样就会每分钟打开一次注册表

计划任务的bat为:
taskkill /f /im regedit.exe
start "" "C:/windows/regedit.exe"
schtasks /end /tn RestartMailService
这样就会每分钟打开一次注册表