Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UNC paths.. local shares and so on..

Status
Not open for further replies.

Oppenhiemer

Programmer
Jun 28, 2001
315
GB
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.
 
Opp,

Have a look at thread102-653552

HTH
TonHu
 
Thanks for your response TonHu (did not see it as my email notification has been flakey due to ISP problems.)

I will check it out shortly (looks comprehensive [bigsmile].)
Cheers..

Opp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top