Jump to content

the file name you specified is not valid or too long


jnathan

Recommended Posts

I badly need to backup this 37 GB drive to my External HDD but I am constantly getting this message on the half way through. what a nuisance. Any software or trick to copy seamlessly without any glitch?

depb90.jpg

Edited by jnathan
Link to comment
Share on other sites


Ntbackup might be able to do it (that's its function). If you wish to stay with copy, you could try robocopy (also check with /B switch).

Edit Reason: remove the B) that wasn't wanted

Edited by allen2
Link to comment
Share on other sites

I've used the following lines to move hundreds of profiles and data folders over computers last year. I found out robocopy is very slow for big amounts of files but having it only check after xcopy had done the job was a big improvement (checking on missing files only on a 2nd pass is very fast).

For instance copying c:\ data to F:\c_data , including protected files and invalid paths (too long).

xcopy C:\Data F:\c_data /e /i /h /c /k /y /r

robocopy C:\Data F:\c_data /e /r:1 /w:1 /v /np /zb /xo

I can't remember what all the switches were about but you can easily find out for yourself.

Note that depending on the target location or the reason why it is invalid at first, the final file name might still be invalid. You can shorten a file's total name by shortening (enough) any folder name in its path. An other workaround to access/use the file is to map a network drive that includes most the path.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...