Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 15th, 2006, 09: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!
Reply With Quote
  #2 (permalink)  
Old September 15th, 2006, 10: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.
Reply With Quote
  #3 (permalink)  
Old September 22nd, 2006, 01: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.
Reply With Quote
  #4 (permalink)  
Old May 30th, 2014, 06: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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 10:16 PM
Create folder in file system to place output into Coby Access VBA 3 June 26th, 2007 11:39 AM
Retriving UNC Path of mapped drive (Linux Folder) kaushalparik ASP.NET 2.0 Professional 2 April 5th, 2007 10:58 PM



All times are GMT -4. The time now is 01:27 AM.


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