Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 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
Thread Tools Display Modes
  #1 (permalink)  
Old June 1st, 2005, 04:53 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default How to find if drive is a mapped drive

If a user browses to a file in my app, and I get back something like "F:\Docs\SpringQtr\The.doc", how can I find whether the F: drive is a hard disk from a machine that has many, a CD, or a mapped drive?

And—more importantly—how can I find what the UNC is for that particular mapped drive?
Reply With Quote
  #2 (permalink)  
Old June 2nd, 2005, 04:07 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

use the Drive object (from FileSystemObject.GetDrive)

property DriveType tells what sort of drive it is (see the DriveTypeConst in the VB Object Browser)
and ShareName property gives UNC path

Reply With Quote

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
Can't detect a mapped drive in ASP Reese_Kirsten ASP.NET 1.0 and 1.1 Basics 2 December 1st, 2006 01:46 AM
mapped drive khansa PHP How-To 0 February 23rd, 2006 06:46 AM
mapped drive khansa PHP How-To 0 February 23rd, 2006 06:43 AM
Mapped drive khansa MySQL 1 February 23rd, 2006 04:38 AM
How to find if drive is a mapped drive BrianWren Access VBA 0 June 1st, 2005 04:55 PM

All times are GMT -4. The time now is 02:31 AM.

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