Solved

Copying long file names

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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