Solved

Copying long file names

Posted on 2007-11-15
3
1,649 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
[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
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

617 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