
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