Solved

robocopy

Posted on 2002-07-08
7
1,001 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

726 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