getting share name of a local drive 
Author Message
 getting share name of a local drive

You can look at the Drive object included in the Microsoft Scripting
Library.  It has a shareName property that returns the share name of the
drive.  I don't know of any api call for this.

    Dim objFSO As New FileSystemObject
    Dim objDrives As Drives
    Dim objDrive As Drive
    Set objDrives = objFSO.Drives

    For Each objDrive In objDrives
        MsgBox objDrive.ShareName
    Next

--
Matthew Arnheiter
Flash Creative Management
http://www.*-*-*.com/


Quote:
> Is there a way to get the share name of a local drive?

> I need to pass a local drive's UNC  to a server.

> Thanks for your help in advance.

> using vb6



Wed, 13 Feb 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. getting share name of a local drive

2. getting share name of local drive

3. local drive letter <> drive share name

4. What is the Share-Name of a local drive

5. What is the Share-Name of a local drive

6. What is network share name of local drive

7. Retreiving The Shared Directory Name On A Local Drive

8. Help Obtaining Local Drive UNC or Share Name

9. Getting share name for a local resource

10. Need help copying files from shared drive to local drive

11. Show Local AND Shared (network) drives in Browseforfolder

12. Browseforfolder should show only local and shared drives

 

 
Powered by phpBB® Forum Software