windows守护脚本

@echo off

tasklist | find /C "python.exe" > temp.txt
set /p num= < temp.txt
del /F temp.txt
echo %num%
if "%num%" == "0" start /D "C:\test\" test.py

posted @ 2017-12-12 10:05  lordhaart  阅读(158)  评论(0编辑  收藏  举报