Windows Legacy OS forum

General discussion

Moving or copying files with long path

by brumer00 / August 29, 2007 5:15 PM PDT

I am trying to move files from one of my servers to another. The problem lies in the directory structure. There are folders in folders in folders.... and Windows cant see past (i think) 128 characters. My way around this is to map a drive to the required folder. But because I have to move all the files it would take years to move the data in this manner. Veritas cant even see down into the file structure so I cant do a redirected restore, and xcopy appears to be the same way. The Xcopy thing confuses me because i can do a 'dir /s' to give me a printout (and summary) of the numbers of files -which is ~100k.

Anybody know a way to move these to another server?

Discussion is locked
You are posting a reply to: Moving or copying files with long path
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Moving or copying files with long path
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
What server OS?
by R. Proffitt Forum moderator / August 30, 2007 6:24 AM PDT

I'll share the FTP might be faster but you'll have to deal with ownership and permission issues if you do that later.

Collapse -
no way
by brumer00 / August 30, 2007 6:37 AM PDT
In reply to: What server OS?

100k files, 10k folders, enterprise shares and permissions to include groups and individual permissions, no way.

Any other ideas?

Collapse -
From the resource kit..
by R. Proffitt Forum moderator / August 30, 2007 6:49 AM PDT
In reply to: no way

Look at scopy and it's replacements at http://www.ss64.com/nt/scopy.html

The path limit is not fixed here but you should have a group beating about why that was allowed. Yes, the copy will take a few days but that's normal.

Bob

Collapse -
Useful utility
by Noelangleo / April 8, 2008 8:45 PM PDT

I know no way to do it even I search it for a long time.
But I solve this by using CanCopy utility to copy file with long name or path.

I use it on XP. I?m not sure if it will work on other Windows or not but you can try with a trial version. http://cancopy.net/

Collapse -
I'm calling that junk.
by R. Proffitt Forum moderator / April 8, 2008 8:59 PM PDT
In reply to: Useful utility

Did you know you can get the same effect with XCOPY and just one switch?

And XCOPY is not a trial version. It appears people are beginning to prey on those that can't use the supplied tools.

Collapse -
Trailing Space
by agentbb007 / August 12, 2008 3:03 AM PDT
In reply to: I'm calling that junk.

After alot of pain this worked for me for a file on a CD with a trailing space.
1. dir /x
2. Find short filename for messed up file, Ex. "PLATT~92.QXD"
3. xcopy PLATT~92.QXD c:\quark\test.qxd /N
4. Now the file is on your drive with a valid name that you can change to what you need.

Hope this helps someone.

Collapse -
solution for copying a file with long path
by farjadarshad / April 11, 2010 3:54 PM PDT

The solution which i am proposing you is the practice which i do but if someone have more useful then this i will really appreciate.

The way i do this by mapping the drive of both paths (source and destination) and copy and paste all the data

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

CNET Forums

Looking for tech help?

Whether you’re looking for dependable tech advice or offering helpful tricks, join the conversation in our forums.