|
Subject:
|
Create a folder/file with a long path
|
|
Posted By:
|
eelisMX
|
Post Date:
|
9/15/2006 8:53:53 AM
|
Hello
I'm getting an error while working with the FS - "The path is too long after being fully qualified. Make sure path is less than 260 characters".
does anyone have a working sample or procedure to handle this issue. The file might be indeed too long so I have to find a way to handle them.
Thanks in advance!
|
|
Reply By:
|
BrianWren
|
Reply Date:
|
9/15/2006 9:59:29 AM
|
Before you invoke this line of code that is raising the error you need to evaluate the path string and make a program flow branch in response to what you find.
Obviously, you have names in your system which are longer than Microsoft anticipated. (I'm on Microsoft's side here—there is no good reason for such lengthy paths. Path names are not meant to be commentary.)
If this is under your control, come up with a way to use shorter paths that still give the necessary isolation of file groups. If it is not under your control you can still make recommendations.
If the path is too long, it is too long. Perhaps you can temporarily create a mapped drive to symbolize a longer path (C:\ThisIsMyLocationForMostOfMySeldomUsedFilesAndOtherWork\Ones_I_ReallyNeverUse\ can be turned into T:\). There is a possibility that even mapped drives are turned into fully-qualified paths when they are resolved however. Some experimentation would clarify whether that is so or not.
|
|
Reply By:
|
eelisMX
|
Reply Date:
|
9/22/2006 12:15:54 AM
|
Thanks for the reply.
|