echo off
set src=\\dudu\new\IISStress.wsc
setdest=%SystemRoot%\System32\WebTest\Stress\IISStress.wsc
echo %dest%
:CHeck
IF EXIST %dest% (
echo%dest% is existed, start to copy....
GOTO:copy
) ELSE (
echo%dest% not existed, Looping....
call:sleep 2
GOTO:CHeck
)
:copy
copy/y %src% %dest%
echoFinished copy.
:sleep
:: sleep for xnumber of seconds
ping -n %1 127.0.0.1> NUL 2>&1