Oppenhiemer
Programmer
Hi -
I wonder if anyone knows how to obtain the share name for a local path - or indeed establish if the path in question is shared at all.
The following applies to a local path (a path on the computer running the app)
What I would like to do id to be able to..
1. Check if a path is shared (like 'D:\')
2. Build a UNC for this location
3. Be able to send this location over a LAN so that others can access the location by using the UNC provided (using the share name).
I have seen references to API routines such as "WNetGetUniversalName" and "WNetGetConnection" but (AFAIK) these are more concerned with network resources from a remote machine.
Anyway, any help would be much appreciated.
Many thanks..
Opp.
I wonder if anyone knows how to obtain the share name for a local path - or indeed establish if the path in question is shared at all.
The following applies to a local path (a path on the computer running the app)
What I would like to do id to be able to..
1. Check if a path is shared (like 'D:\')
2. Build a UNC for this location
3. Be able to send this location over a LAN so that others can access the location by using the UNC provided (using the share name).
I have seen references to API routines such as "WNetGetUniversalName" and "WNetGetConnection" but (AFAIK) these are more concerned with network resources from a remote machine.
Anyway, any help would be much appreciated.
Many thanks..
Opp.