Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Folder compare with very long path and file names (255+ chars)

Posted on 2004-10-24
14
Medium Priority
?
324 Views
Last Modified: 2010-04-03
Not sure this is the right area for this; if not, let me know...

Anyone have any idea how to copy files from one place to another when the file path name length exceeds what Windows 2000 can handle natively?  The folders in question, if you navigate to the end of the folder structure, once you hit the limit, either Windows throws an error window "Can't access this folder.  Path is too long.", or if the folder itself goes over the path limit it refuses to change folders (with no error or message), or if the files within the folder go over the limit, it won't show the files in that folder (again, without error or message).

I've been using xcopy to copy the files from one server to another, then use WinDiff to ensure they are the same.  However, both of these utilities also have the path name length limit, so they're no good for me.  Any ideas?  Programs, reghacks, patches, etc?
0
Comment
Question by:HatchIT
[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
14 Comments
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 12396605
Use 8.3 file and folder names - would require good scripting or manual commands.  I had a similar problem and this helped me.  
0
 
LVL 1

Author Comment

by:HatchIT
ID: 12396651
Thought of that, but I need to keep the original filenames and security, as the users will be searching for the original file names.

And for additional information:

If you can't tell me a program that can do this, but can show me how it can be done (preferrably with VB.NET or VB6), that'd work.

Also, the files and folders got around the limitation because additional shares had been set up several folders under the original share, meaning that what was originally \\servername\sharename\folder1\folder2\folder3\folder4 now becomes \\servername\newshare, thereby eliminating several levels of folder characters.  However, I need to be able to copy the entire folder all at once.  And no, creating the share directly at the root folder I want to work with doesn't work either.  :-(  It's still too long.
0
 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 12398575
The EXACT tool for you would be xxcopy. Its free and it does exactly what you are asking; Checkout the /BB options:

Links:
xxcopy home page:
http://www.xxcopy.com/index.htm

xxcopy Command reference:
http://www.xxcopy.com/xxcopy01.htm

Good luck

Cyber
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 1

Author Comment

by:HatchIT
ID: 12406416
Nah, won't work.  Had a look through the xxcopy group archive, and as of four months ago, the author said he will not support 256+ char path + file names.  See http://www.xxcopy.com/xxgroup/m08/msg08162.htm for the last message from the author.

Anyone else?
0
 
LVL 1

Author Comment

by:HatchIT
ID: 12456003
No-one has any additional ideas?
0
 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 12456014
Hmmmm....

I'll provide you with an answer later.

Cyber
0
 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 12462796
OK
Found a great idea for you. Sience the 255 chars is an OS limitation and no copy software under Windows will be able to commit your task. It is best, to my knowledge to use an external kernel that will allow you full access to the data you are trying to copy as well as byond the 255 chars ability. I thought of doing the following:
1. Download Knoppix (which is a full bootable Linux along with all hardware recognition and forth).
2. Burn the image on any CD and boot from it to view all the files on any NTFS/FAT32 partition.
3. In console, 'su' to become root, then mount your drive with 'mount -rw /dev/hdaXX'. Do your copy with 'cp <path><file> <path><file>'.
4. There you go:

Links:
Knoppix download site:
http://www.knoppix.net/get.php
CP command line:
http://www.linuxforum.com/shell/cp/107-8.php

Cyber
0
 
LVL 1

Author Comment

by:HatchIT
ID: 12501284
This is going to be on a production server (our main data server for Australasia), so I'm a bit loath to play around with Linux stuff on our server.

Besides, we've finally found a solution.  HP OpenView Storage Mirroring has an almost 40,000 char limit on pathnames and runs as a service.  :-)  It's also what our colleagues in North America are already using, so I'll be getting my copy soon.  I've already tested it out here and it does everything we need it to (and then some!).

Thanks anyway.
0
 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 12501305
Good luck

Cyber
0
 
LVL 1

Author Comment

by:HatchIT
ID: 12703271
Ok, thanks, been wondering how to clean this up...
0
 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 12704324
Have somthing might help you - that is if you are willing to try that. I have encountered a case (tried it my-self and it works) which might provide you with generic direction; Checkout the following link:

http://www.experts-exchange.com/Operating_Systems/Q_21215217.html

Good luck

Cyber
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 12742575
Question answered by asker or dialog valuable.
Closed, 500 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
Suggested Courses

618 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