- @echo off
- mode con: cols=30 lines=4
- color 1f
- :t
- cls
- set "file=a.txt"
- for %%a in ("%file%") do set t1=%%~ta
- timeout /t 600
- for %%a in ("%file%") do set t2=%%~ta
- if "%t1%" neq "%t2%" (%t1%) else taskkill /f /im python.exe && ping>nul -n 5 127.0.1 && start 监控.py
- goto t
- pause
复制代码 回复 1# keshun |