Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在cmd中每分钟检查一个文件是否存在。有人可以帮忙语法吗?
以下批处理文件应该可以工作:
@echo off :loop if exist FILENAME ( echo "found" ) else ( timeout /t 60 /nobreak > nul goto loop )
不要忘记正确替换 FILENAME。