Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
| Search | Today's Posts | Mark Forums Read
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 15th, 2006, 08:53 AM
Authorized User
 
Join Date: Dec 2004
Location: Salo, Loimaa, , Finland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to eelisMX
Default 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!
  #2 (permalink)  
Old September 15th, 2006, 09:59 AM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

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.
  #3 (permalink)  
Old September 22nd, 2006, 12:15 AM
Authorized User
 
Join Date: Dec 2004
Location: Salo, Loimaa, , Finland.
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to eelisMX
Default

Thanks for the reply.
  #4 (permalink)  
Old May 30th, 2014, 05:02 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Class library folder path arunkhushi C# 1 February 4th, 2008 12:59 PM
Extracting the full path of a folder vamshikrishnaD ASP.NET 1.0 and 1.1 Professional 3 August 2nd, 2007 09:16 PM
Create folder in file system to place output into Coby Access VBA 3 June 26th, 2007 10:39 AM
Retriving UNC Path of mapped drive (Linux Folder) kaushalparik ASP.NET 2.0 Professional 2 April 5th, 2007 09:58 PM





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