REM error code ERROR 2 (0x00000002) Copying File \Local_network_storage\Q2Elispot\AID.ROBOT1\EBOLA\062508-L1-B3-4001-0144\data.txt The system cannot find the file specified.
@echo off cls :start set timestamp=%time:~0,2%
set todaysdate=%date:~-4%%date:~4,2%%date:~7,2%
set Source=\domain_name\Q2Elispot\AID.ROBOT1
set Destination=\domain_name\company\Apps\Lab-ElispotAP.Secured\SecuredRaw.Data
set Log=\domain_name\company\Apps\Lab-ElispotAP.Secured\SecuredRaw.Data\Logs set LogName=ElispotRawDataLog
if not exist %Log%%todaysdate%\ mkdir %Log%%todaysdate%\
robocopy %source% %destination% /E /FFT /Z /R:2 /W:2 /MT:8 /NP /LOG+:"%Log%%todaysdate%%LogName%_%timestamp%.txt"
goto start
REM The error is not because the filename is too long REM I appreciate any help.
User contributions licensed under CC BY-SA 3.0