p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Pro VB.NET 2002/2003 (http://p2p.wrox.com/forumdisplay.php?f=74)
-   -   Create a folder/file with a long path (http://p2p.wrox.com/showthread.php?t=47884)

eelisMX September 15th, 2006 08:53 AM

Create a folder/file with a long path
 
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!

BrianWren September 15th, 2006 09:59 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:\ThisIsMyLocationForMostOfMySeldomUsedFilesAndO therWork\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.

eelisMX September 22nd, 2006 12:15 AM

Thanks for the reply.

adamenko May 30th, 2014 05:02 AM

I would suggest you to use Long Path Tool. Its sure to sort out your problem.


All times are GMT -4. The time now is 09:23 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.