Discussion:
Error Message "Cannot copy FILENAME: path too deep"
(too old to reply)
Lance Morrison
2004-04-02 00:48:25 UTC
Permalink
I'm trying to use a batch file and task manager to copy
specific directories from the server to a mapped USB drive
for backup, but this error message is stopping the process.

I have the same problem in copying this file from the
server data drive to the C:\ drive using windows explore.

I could not find a reference to this error message at the
support site.

Any ideas?
Brian
2004-04-02 20:38:51 UTC
Permalink
Post by Lance Morrison
I'm trying to use a batch file and task manager to copy
specific directories from the server to a mapped USB drive
for backup, but this error message is stopping the process.
I could not find a reference to this error message at the
support site.
Maybe this will help, from the Microsoft knowledgebase:

Cannot Access Folder Because the Path Is Too Long or DeepPSS ID Number:
180410

Article Last Modified on 5/12/2003


----------------------------------------------------------------------------
----
The information in this article applies to:


Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional
Microsoft Windows NT Server, Enterprise Edition 4.0
Microsoft Windows NT Server 3.51
Microsoft Windows NT Server 4.0
Microsoft Windows NT Workstation 3.51
Microsoft Windows NT Workstation 4.0

----------------------------------------------------------------------------
----

This article was previously published under Q180410
SYMPTOMS
When you attempt to open, delete, or rename a folder using Windows NT
Explorer or File Manager, you may receive one of the following error
messages:
Cannot delete folder - path too Deep Can't access this folder.
Path is too long
Some third-party anti-virus and tape backup programs may be unable to access
files or folders with paths that are too long.
CAUSE
This problem can occur if the path to the file or folder is longer than the
file system can accommodate. For example, this problem may occur if you
connect a drive to a share and then create a path over 255 characters to the
share.
RESOLUTION
To work around this issue, you can use the SUBST command to associate a
drive letter with the long path to access the file or folder. To do so,
follow these steps:
At a command prompt, change to the parent folder containing the file or
folder you are attempting use.
To assign a drive letter to the location, type the following command

subst <drive>: .

where <drive> is an available drive letter and "." is a period, indicating
the current folder.
Type exit, and then press ENTER.
NOTE: You can remove the virtual drive letter by typing subst <drive>: /d at
a command prompt.

You can also work around this issue by connecting recursively to the share
on the server and using a drive letter to point to the share.
MORE INFORMATION
The hard disk's file system determines the maximum number of characters in
the path to a file or folder from the Win32 API variable MAX_PATH. The File
Allocation Table (FAT) for MS-DOS, Protected-Mode FAT (VFAT) for Windows 95,
and NT File System (NTFS) file systems are usually limited to 255 characters
in a path.
REFERENCES
For more information about this issue, please see the following articles in
the Microsoft Knowledge Base:


ARTICLE-ID: 157069
TITLE : "Can't Access This Folder. Path Is Too Long" Error

ARTICLE-ID: 177665
TITLE : Path Too Long Error Message When Exceeding MAX_PATH



For more information about the Win32 API MAX_PATH variable, see the
following Microsoft Web site:


http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/techart/msdn_lon
gfile.htm



Additional query words: 256 longfilename

Keywords: kbenv kbinfo KB180410
Technology: kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Pro
kbwin2000ProSearch kbwin2000Search kbwin2000Serv kbwin2000ServSearch
kbWinAdvServSearch kbWinNT351search kbWinNT400search kbWinNTS351
kbWinNTS351search kbWinNTS400 kbWinNTS400search kbWinNTsearch kbWinNTSEnt400
kbWinNTSEntSearch kbWinNTSsearch kbWinNTW351 kbWinNTW351search kbWinNTW400
kbWinNTW400search kbWinNTWsearch



----------------------------------------------------------------------------
----

Send feedback to Microsoft

© 2004 Microsoft Corporation. All rights reserved.
antonyrat
2010-11-12 17:28:48 UTC
Permalink
Brian wrote on 04/02/2004 16:38 ET
&quot;Lance Morrison&quot; wrot
Post by Lance Morrison
I'm trying to use a batch file and task manager to cop
specific directories from the server to a mapped USB driv
for backup, but this error message is stopping the process
I could not find a reference to this error message at th
support site
Maybe this will help, from the Microsoft knowledgebase
Cannot Access Folder Because the Path Is Too Long or DeepPSS ID Number
18041
Article Last Modified on 5/12/200
The information in this article applies to
Microsoft Windows 2000 Serve
Microsoft Windows 2000 Advanced Serve
Microsoft Windows 2000 Professiona
Microsoft Windows NT Server, Enterprise Edition 4.
Microsoft Windows NT Server 3.5
Microsoft Windows NT Server 4.
Microsoft Windows NT Workstation 3.5
Microsoft Windows NT Workstation 4.
This article was previously published under Q18041
SYMPTOM
When you attempt to open, delete, or rename a folder using Windows N
Explorer or File Manager, you may receive one of the following erro
messages
Cannot delete folder - path too Deep Can't access this folder
Path is too lon
Some third-party anti-virus and tape backup programs may be unable to acces
files or folders with paths that are too long
CAUS
This problem can occur if the path to the file or folder is longer than th
file system can accommodate. For example, this problem may occur if yo
connect a drive to a share and then create a path over 255 characters to th
share
RESOLUTIO
To work around this issue, you can use the SUBST command to associate
drive letter with the long path to access the file or folder. To do so
follow these steps
At a command prompt, change to the parent folder containing the file o
folder you are attempting use
To assign a drive letter to the location, type the following comman
period
indicatin
the current folder
Type exit, and then press ENTER
/
a
a command prompt
You can also work around this issue by connecting recursively to the shar
on the server and using a drive letter to point to the share
MORE INFORMATIO
The hard disk's file system determines the maximum number of characters i
the path to a file or folder from the Win32 API variable MAX_PATH. The Fil
Allocation Table (FAT) for MS-DOS, Protected-Mode FAT (VFAT) for Windows 95
and NT File System (NTFS) file systems are usually limited to 255 character
in a path
REFERENCE
For more information about this issue, please see the following articles i
the Microsoft Knowledge Base
ARTICLE-ID: 15706
TITLE : &quot;Can't Access This Folder. Path Is Too Long&quot; Erro
ARTICLE-ID: 17766
TITLE : Path Too Long Error Message When Exceeding MAX_PAT
For more information about the Win32 API MAX_PATH variable, see th
following Microsoft Web site
http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/techart/msdn_lo
gfile.ht
Additional query words: 256 longfilenam
Keywords: kbenv kbinfo KB18041
Technology: kbwin2000AdvServ kbwin2000AdvServSearch kbwin2000Pr
kbwin2000ProSearch kbwin2000Search kbwin2000Serv kbwin2000ServSearc
kbWinAdvServSearch kbWinNT351search kbWinNT400search kbWinNTS35
kbWinNTS351search kbWinNTS400 kbWinNTS400search kbWinNTsearch kbWinNTSEnt40
kbWinNTSEntSearch kbWinNTSsearch kbWinNTW351 kbWinNTW351search kbWinNTW40
kbWinNTW400search kbWinNTWsearc
Send feedback to Microsof
&copy; 2004 Microsoft Corporation. All rights reserved
Hy. I runned into that damn problem too. And after days of searching I finall

found this software: Long Path Tool

It's GREAT. You can find it here http://www.deletelongfile.com

Loading...