robocopy

Hi

I use the robocopy utility to keep a copy of a server on a stand by server. I find this very useful especially when users have lost files.

The problem i find is that if a directory structure is very long and the file name is pretty long also, the robocopy command fails to copy this file. Is there any way around this.

thanks

sed
sedatrizaAsked:
Who is Participating?
 
SpideyModConnect With a Mentor Commented:
Administrative Action - PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0
 
SysExpertCommented:
I think you are hitting on of the file name limitations ( either 127 or 255 characters max ).

I would consider shortening file and directory names where needed.

Other options are to create mapped drives to the folders in question, on BoTH machines, and then copy from the mapped drive after doing a CD into a lower directory.

I hope this helps !
0
 
sedatrizaAuthor Commented:
thanks for this but it does not help really.
it's that when you do a robocopy, the path length including the file name exceeds 255 characters.

I just find robocopy very usefull. i could use the mapped drive and copy stuff but it's a bit slow if it has to be done regularly.

I was rather hoping there was a switch or  another utility which had no file name length limitations.

thanks anyway

sed
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
mikecrCommented:
The only way that I have found to get around this, and sometimes it doesn't even work, is to use the /mir switch to mirror the whole directory structure.
0
 
Tim HolmanCommented:
0
 
mountainandtownCommented:
WARING:

 web site posted by tim_homan redirects to malocious code attack!
0
 
samiam41Commented:
WARNING no longer.  Site is fine as of 11.15.12
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.