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