Solved

Copying long file names

Posted on 2007-11-15
3
1,643 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 75 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Best practice DHCP migration 7 55
Server Login Issue 4 40
home folder path for users 4 47
AD user acount change history 4 56
Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

21 Experts available now in Live!

Get 1:1 Help Now