File name too long for paste

  • Thread starter Thread starter John Herbster
  • Start date Start date
J

John Herbster

When trying to paste more than a hundred thousand files copied from
one drive to another I get an error message "File name too long." or
something like that. What is the easiest way to locate that (or
those) files so that I can fix the name. TIA, JohnH
 
When trying to paste more than a hundred thousand files copied from
one drive to another I get an error message "File name too long." or
something like that. What is the easiest way to locate that (or
those) files so that I can fix the name. TIA, JohnH


Try half of the files at a time to determine which half it's in. Then
try half of that half at a time, and so on.
 
I would use the command line, to set all the files I want to copy to having
the 'archive' bit set, then copy with the switch to turn off the bit as it
copies, also using the switch to ignore errors. After the copy, look at the
original files with the attrib utility, to find any file that still has the
archive bit set.

From the command prompt, type
xcopy /?
and
attrib /?
 
Back
Top