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.
我有file1并file2到达某个共享文件夹。它们是数据库刷新后创建的触发文件。我需要在同一共享文件夹中创建一个新文件,file1然后file2到达该位置。
file1
file2
这里有一些简单的东西。该ping命令是一种在 Windows 上获得延迟(在本例中为 5 秒)的方法。
ping
:CHECK_LOOP IF EXIST file1 ( IF EXIST file2 ( echo.>file3 ) ) ping -n 5 localhost >NUL 2>NUL GOTO :CHECK_LOOP