Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Copying long file names

Posted on 2007-11-15
3
Medium Priority
?
1,653 Views
Last Modified: 2012-05-05
Hi

I had Operating System: Win2k3 STD R2 - SP2; When i'm trying to copy bunch of files and folders i get an error message "Cannot remove folder "file name": The filename or extension is too long." then i need to rename the folder to a short name and copy again.

Is their any solution to copy long files and folders without renaming

ZAK
0
Comment
Question by:ZAK360
  • 2
3 Comments
 
LVL 14

Expert Comment

by:cuziyq
ID: 20290046
The maximum path length supported in Windows is 256 characters including the file name, all the slashes, and the drive letter plus colon at the front.  The only way to copy this directory is to start at some arbitrary point down the tree and do it in chunks that have less than 256 characters in their path (actually the full path length is actually 254 because the invisible CR/LF at the end counts even though it is not part of the file name).
0
 

Author Comment

by:ZAK360
ID: 20290530
Thanks for your info. i read this before, but is their any solution to overcome this?

ZAK
0
 
LVL 14

Accepted Solution

by:
cuziyq earned 225 total points
ID: 20290633
Nope.  It's a lmitation of Windows.  You could possibly boot from a Linux "live" CD to copy the files, but I've never tried that.  The limitation is actually in the Windows shell, not NTFS.  NTFS supports over 65000 characters in a file path from a purely technical standpoint.

I have run into things like this before with Windows.  It has issues dealing with very long file paths, very deeply nested directories, and directories with tens of thousands of files.  It's frustrating as hell and there's no convenient way around it.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

926 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