Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Copying long file names

Posted on 2007-11-15
3
Medium Priority
?
1,651 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
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…

722 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