Error when trying to copy over the network using robocopy

3

C:\Users\Alex.Newton>robocopy /"\centlpf01cz6c\c$\Program Files\ProgramName\/" /"
\centlpf01cz6c\Program Files\TestBatch\Test\/"

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

-------------------------------------------------------------------------------

  Started : Mon May 25 15:42:30 2015

2015/05/25 15:42:30 ERROR 67 (0x00000043) Getting File System Type of Destinatio
n \\centlpf01cz6c\Program Files\TestBatch\Test\
The network name cannot be found.

   Source : \\centlpf01cz6c\c$\Program Files\ProgramName\
     Dest - \\centlpf01cz6c\Program Files\TestBatch\Test\

    Files : *.*

  Options : *.* /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

2015/05/25 15:42:30 ERROR 67 (0x00000043) Creating Destination Directory \\centl
pf01cz6c\Program Files\TestBatch\Test\
The network name cannot be found.

This is the return I get when using Robocopy - The network name exists; any help guys?

Alex

Posted 2015-05-25T14:48:37.633

Reputation: 59

Answers

1

Remove the trailing backslashes from the source and destination path names.

Note syntax from robocopy /?:

     source :: Source Directory (drive:\path or \\server\share\path).
destination :: Destination Dir  (drive:\path or \\server\share\path).

Ƭᴇcʜιᴇ007

Posted 2015-05-25T14:48:37.633

Reputation: 103 763

1I got the same error, but had the proper syntax. Any other suggestions? one destination is local and the other is a network drive that is mapped. Tried both syntax for the path – Adjit – 2016-03-13T18:56:21.030

1This doesn't work for me either. I guessed the right syntax yesterday after hours of messing around, but I can't remember it. Why can't microsoft make operating systems that just copy files?! – Owl – 2017-03-30T13:56:25.340