Help Obtaining Local Drive UNC or Share Name 
Author Message
 Help Obtaining Local Drive UNC or Share Name

I need to determine the UNC(\\MachineName\ShareName\Path) of a local drive
in Visual Basic 5.  Yes I know about the API calls WNetGetConnection and
WNetGetUniversalName, both of which work great for Network drives but return
error 1200 "The specified device name is invalid" when used on a local
drive.

I can easily obtain the machine name and path but I am missing the Share
Name.  If the drive 'Volume Name' and 'Share Name' are the same I can use
Dir, but unfortunately in most cases the 'Volume Name' and 'Share Name' are
not the same.

So what I need to find is the UNC of a 'Local Device' or a way to determine
the share name of a 'Local Device'.

Thanks,
Mike Barta

Lead Developer
Health+Cast Information Network L.L.C.



Sun, 04 Feb 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. local drive letter <> drive share name

2. Local share/UNC name

3. Local share/UNC name

4. Shared Local Directory-UNC Names

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

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

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

8. What is network share name of local drive

9. Retreiving The Shared Directory Name On A Local Drive

10. getting share name of a local drive

11. getting share name of a local drive

12. getting share name of local drive

 

 
Powered by phpBB® Forum Software