
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.