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.
如果某个文件更新,我想让我的批处理文件回显警报,但不知道如何处理代码。
当您想(重新)开始监控时
for %%i in (filename) do set snapshot=%%~ti
当您要检查文件是否已更新时,
for %%i in (filename) do if not "%snapshot%"=="%%~ti" ECHO file was updated