• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5961
  • Last Modified:

destination does not support long file names

I get the above error message when I copy a Word document from the network drive and then paste it to another directory on the same network drive.

The name is "Squadon Directory.doc"  

it also happens on other similar names with other extensions like Excel.

The server is NT2000

Copy..pasting the file from the harddrive to the same harddrive works no problem.

Can anyone help? Thanks.

0
NeerDeth
Asked:
NeerDeth
  • 4
  • 2
  • 2
  • +3
1 Solution
 
dev8Commented:
Hello,

Is this just happening with the Word documents and Excel documents?  What is the filesystem in use?  
0
 
tosh9iiiCommented:
maybe the folder name is too long

Can you give us the entire path (address) of the file, you know like:  C:\document and settings\folder name\squadron directory.doc

Is it the same for all of the documents, or only that one?
0
 
NeerDethAuthor Commented:
yes, the folder names are very long, quite often over 100 char longs and 4+ directories deep
but not all people have trouble copying files to these folders

0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
NeerDethAuthor Commented:
i'm told that it's file system 'posix'
but I've never heard of that, so I'm not sure
0
 
NeerDethAuthor Commented:
scratch the posix
0
 
tosh9iiiCommented:
Is renaming those folders with a shorter name a possibility?
0
 
NeerDethAuthor Commented:
no
0
 
Aland CoonsSystems EngineerCommented:
I have encountered the same and similar errors before.  (and tosh9iii is very close to the correct answer.)  What will work is taking spaces OUT of the directory name -or- the file name.  It will probably work okay if either of them have spaces but NOT BOTH.  Strange but true.  In most cases I advise folks to keep long file names and scratch long directory names using anacronyms instead like PWC\planning\teams or AFG\financial\committee.

This become expecially important the longer the paths get because the entire length cannot be over 256 characters. This may be the limit you have run into. In this case you might get away with a few longer directory names but will need to shorten some of them. Your directory structure is probably NTFS (instead of POSIX):

http://www.burnthacker.com/archives/000019.html
NTFS Maximum Path Name Length
"The maximum length of a path on Windows (at least from the command line) is 256 characters. "
What this means from a practical perspective is that if you have deep paths structured you'll run into stray messages like: "The system cannot find the path specified."

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/naming_a_file.asp
According to Microsoft that is supposed to be extended to "32,767 characters, composed of components up to 255 characters in length" using Unicode functions however I would expect that most functions still use Windows API where "the maximum length for a path is MAX_PATH, which is defined as 260 characters".

0
 
CSSupport2007Commented:
I've seen this before a few times when copying a file to another folder.  The total character length was not close to the max.  After logging out and back in, the user I was supporting was able to copy the file into the folder that was giving the error previously.
0
 
CSSupport2007Commented:
Also, check the mapping of the drive you're trying to save to.  The user I was supporting had lost his
0
 
maynardincSysadminCommented:
CSSupport2007....Your fix did work. It was weird, because the "Map Network Drives" showed that drive to be mapped, but "My Computer" did not, and the user was able to move files, but would get that error.
I went into Windows Explorer, Unmapped the drive using Tools - Disconnect Network Drive, then remapped, and the error went away.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now