Windows Bat脚本实现定时重启应用程序
Windows Bat脚本实现定时重启应用程序
EXE重启bat脚本
@echo off
echo "killing application ..."
taskkill /f /im wemeetapp.exe
echo "application was killed successfully."
@ping 127.0.0.1 -n 6 >nul
echo "starting application"
cd /d E:\"Program Files"\WeMeet\
E:\"Program Files"\WeMeet\wemeetapp.exe
echo "it will exit in 6 sec."
@ping 127.0.0.1 -n 6 >nul
exit
第二步、在系统定时任务中创一个每天定时运行的任务,选中这个脚本,就能实现,应用自动重启了
本文来自博客园,作者:西北后生,转载请注明原文链接:https://www.cnblogs.com/tianyuanblog/p/17026518.html