Solved

robocopy

Posted on 2002-07-08
7
994 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now