Skip to content
Home » robocopy

robocopy

DESTINATION PATH TOO LONG – ERROR

We are in 2024, entering into 2025, and most people still suffer from this ridiculous error, even after enabling long file names in GPEdit and also in the Registry.



To get around it, use ROBOCOPY

Open a command prompt as administrator

cd into the directory you want to copy from

know the path to the directory you want to copy the files to.

execute the command

the format will look like this:
robocopy . “D:\DestinationDirectory” /E /COPYALL /R:0

robocopy .
means robocopy everything in this directory and its sub directories

FASTEST WAY TO COPY FILES BETWEEN TWO SYNOLOGY NAS DEVICES

Windows is slow…takes weeks to copy 15TB between two devices if you use explorer. Here is how you copy the files in hours instead of weeks.

On your Windows 11 computer

Open Explorer

Navigate to Synology 1

Map a Drive from your Windows 11 pc to the Synology Share
ex. Drive X will be \\Synology1\Share

Now do the same for Synology 2 and the share you want to map.
ex. Drive Y will be \\Synology2\Share

On your Windows 11 pc, now open PowerShell (not as Administrator, just open PowerShell)

Type:
robocopy ‘X:\FolderYouAreCopyingFrom’ ‘Y:\FolderYouAreCopyingTo’ /S /E /MT:32 /NFL /NDL /NJH /NJS

example: robocopy ‘X:\SourceCode\Documents’ ‘Y:\NewSourceCodeRepo\Documents’ /S /E /MT:32 /NFL /NDL /NJH /NJS /V

You will copy thousands of files per second over a 1GbE network