Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an external hard drive with many files (800 GB). I want to copy the entire contents of the external hard drive to my local drive. get many errors about long file name or long file path. Renaming is also not possible because of number of errors.

What can I do about this issue?

share|improve this question

You'll get these kinds of errors if you use the drag-and-drop copy within Windows explorer.

However, if you use Robocopy, you should find that you can copy the files without any issues.

The command-line version of Robocopy is built-in to Windows 7 and Windows Server 2008; it can be downloaded for other operating systems. Although there is a downloadable GUI, it's best used from the command line (aka CMD.exe).

By default, Robocopy should handle paths greater than 256 characters (there's a switch to turn it off, but in your case you don't want to do this).

Example command line (which will copy all files in the folder C:\Projects to the folder Z:\Projects):

robocopy "C:\Projects" "Z:\Projects" *.* /COPY:DAT /E

share|improve this answer
thanks for answer / would you plz tell me which parts of robocopy should i check for this purpose! – SliverLight Oct 23 '11 at 10:34
those checks are so important... – SliverLight Oct 23 '11 at 10:37
Edited answer to provide an example Robocopy command – misterjaytee Oct 23 '11 at 12:02
thanks for edit / should i use this command in command prompt(cmd) or robocopy has a place for using that command? – SliverLight Oct 24 '11 at 10:28
As it says in the text, "use it from the command line" otherwise known as the command prompt or CMD. – misterjaytee Oct 24 '11 at 18:44

You must log in to answer this question.

protected by nhinkle Mar 6 '12 at 20:29

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .