:CopyFile
echo.fxcopy /c/y tmp.dll tmp.tmp
echo "File Copied Over " >> c:\copylog.txt
echo.TIMEFIND /I "current" >> c:\copylog.txt
echo. fxcopy /c/y tmp.tmp tmp.dll
echo "File Copied Back " >> c:\copylog.txt
echo.TIMEFIND /I "current" >> c:\copylog.txt
@GoTo :CopyFile
"File Copied Over "
The current time is: 14:23:01.39
"File Copied Back "
The current time is: 14:23:01.73
"File Copied Over "
The current time is: 14:23:02.15
"File Copied Back "
The current time is: 14:23:02.54
"File Copied Over "
The current time is: 14:23:02.93
You can use this quickly get an idea of latency issues between two machines. Just change the file path to
file:////serverfrom/share/file to
file:////serverto/share/file.