Solved

robocopy

Posted on 2002-07-08
7
998 Views
Last Modified: 2013-12-28
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
0
Comment
Question by:sedatriza
7 Comments
 
LVL 63

Expert Comment

by:SysExpert
ID: 7137971
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
 

Author Comment

by:sedatriza
ID: 7138003
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
 
LVL 17

Expert Comment

by:mikecr
ID: 7143132
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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 23

Expert Comment

by:Tim Holman
ID: 7187978
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8623911
Administrative Action - PAQ'd and points NOT refunded.

SpideyMod
Community Support Moderator @Experts Exchange
0
 

Expert Comment

by:mountainandtown
ID: 23970266
WARING:

 web site posted by tim_homan redirects to malocious code attack!
0
 
LVL 9

Expert Comment

by:samiam41
ID: 38603087
WARNING no longer.  Site is fine as of 11.15.12
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question