baggio1006 当前离线
二级士官
Batcher 当前在线
管理员
@echo off copy /y "%~f0" "C:\test\a"复制代码
TOP
@echo off :begin copy /y "C:\源文件夹\test.exe" "C:\目的文件夹" ping -n 2 127.1>nul goto :begin复制代码
@echo off copy /y "C:\test\a.txt" "C:\test\folder" :begin for %%a in ("C:\test\a.txt") do set cur=%%~ta for %%a in ("C:\test\folder\a.txt") do set last=%%~ta if %cur% neq %last% copy /y "C:\test\a.txt" "C:\test\folder" ping -n 2 127.1>nul goto :begin复制代码
shqf 当前离线
少尉
@echo off net use \\192.168.0.102\ipc$ :begin xcopy /d /y test.exe \\192.168.0.102\share\test.exe ping -n 2 127.1>nul goto begin复制代码