I am trying to run a copy command to transfer a Zip file from the local file system to a UNC path on a different server. The file does copy but I get the below error and exit code 1. The user has full permissions on the destination folder.
Command:
robocopy "C:\vsts-agent\_work\1\a\" "\\file-clstr\websites\" "Global.zip"
Output:
ROBOCOPY :: Robust File Copy for Windows
Started : 12 December 2017 13:36:46 2017/12/12 13:36:46 ERROR 5 (0x00000005) Getting File System Type of Destination \file-clstr\websites\ Access is denied. Source : C:\vsts-agent_work\1\a\ Dest - \file-clstr\websites\ Files : Global.zip
Options : /DCOPY:DA /COPY:DAT /R:1000000 /W:30
1 C:\vsts-agent\_work\1\a\
New File 375.3 m Global.zip
0.0% 0.2% 0.5% 0.7% 1.0% 1.3% 1.5% 1.8% ...