Cannot copy files - source filename are larger than is supported error

Not able to copy files from one drive to another drive showing error : source filenames are larger than is supported.
I need to copy over 700GB to another location.

Any recommendations or solutions please...
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

helpfinderIT ConsultantCommented:
I think it´s not about how many GB the files have but that filenames are too long. Maybe just filename or whole path (if you have a lot of subfolders)
try to reduce number of subfolders or lenght of characters in the file name
vibinsathyanAuthor Commented:
Seems like that ..but it is impossible to  change file names as this is a backup folder(incremental) and have thousands of folders and subfolders. any other way I can copy??? because my drive is full and need to copy that to any external HDD inorder to free the space for daily backups.
helpfinderIT ConsultantCommented:
if you have your files and folders like
and it is too long, try to map new network drive e.g. X: and map D:\folder/a/b/c/d/e/f/g/h/i/j/k path.
then try to copy files and folders from X: to your external drive - maybe it will work like this.
If not then probably you have to copy files and folders from D:\folder/a/b/c/d/e/f/g/h/i/j/k to D:\TempBackup and then from D:\TempBackup to your external drive
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Use the command line tool robocopy.exe (part of the OS since Vista/Server 2008), it supports long file names.
The syntax is slightly different than copy or xcopy, it expects the source folder first, then the target folder, then the file mask (*.* if omitted), then other options.
Note that robocopy will by default skip files that already exist in the target folder in the same version (size and date), so it won't copy unnecessarily if you run the copy more .
Enter "robocopy /?" in a command prompt for details, it has lots of useful options.
You can start with something like this:
%Systemroot%\system32\robocopy.exe "C:\Source\Folder" "D:\Target\Folder" *.* /e /r:0 /w:0 /np /tee /log:"C:\Temp\robocopy.log"

Open in new window

/e will copy subfolders, /r:0 and /w:0 set the the retry and copy counts (usually only needed over unreliable networks), /np will disable the progress bar for larger files (because it uses control characters that make the log file hard to read), /tee sends the output to the console and a log file, and /log sets the log file.
If you wan to copy including NTFS permissions, add /copyall to the options.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gary CaseRetiredCommented:
You can confirm that the path length is the issue with this nifty (and free) little tool:

Assuming that's the problem, there are several ways to resolve it.   A couple simple approaches are:

=>  Create a .Zip file containing the files you want to copy (use a name for the .Zip file that doesn't exceed the path length restrictions) ... and then just copy the .Zip file.    I use 7-Zip for these kind of operations.

=>  Use the LongPath fixer tool from Corz:

=>  Use the "subst" command to substitute a very short path (e.g. a drive letter) for the long part of the path ... this can make the total path much short (well within the path length restrictions).    See examples here:
vibinsathyanAuthor Commented:
Thanks everyone for the replies..Let me try oBdA suggestion..other suggestions seems not practical in my scenario..I was trying to copy installing teracopy and it is indeed working till now(only 20% finished)..let me confirm the outcome..
vibinsathyanAuthor Commented:
oBdA suggestion (Robocopy) worked..but it is taking a lot of time (only 25% finished of 700GB and 20Hrs finished) ..thank you for the replies.. :)
To expand on oBdA's great answer, you can use a GUI utility that performs the same command line function, it's called 'RoboMirror', it's great and it's free.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.