批处理定时启动某个软件
@echo off
set time=36000 //设置间隔多少时间重启软件,单位为秒
:Again
echo 准备关闭软件
taskkill /t /f /im P.exe //关闭当前软件运行的进程
echo 关闭软件成功
echo 准备启动软件
echo 等待5秒
CHOICE /T 5 /C ync /CS /D y /n //等待5秒后重启
echo 重启本程序
start “” “C:\Users\Administrator\Desktop/P.exe” //软件所在的位置
timeout %time%
goto Again