Getting share name for a local resource 
Author Message
 Getting share name for a local resource

Hi,
I need some help, please.
Could anybody tell me how to:
- check if a local resource is shared
- if it is, get it's share name?
For example, if there is a file in my C:\MyDocuments\Public folder named
AnyFile.txt, and my C: is shared as MyC, I need something like:
'\\deanv\MyC\MyDocuments\Public\AnyFile.txt'.
Or, if C: is not shared, but the Public subfolder in MyDocuments is shared
as MyPublicShare, I should get something like this:
'\\deanv\MyPublicShare\AnyFile.txt'.
('deanv' is a machine name).
First, of course, I need to know if the resorce is shared at all.
Thanks for any help.

Dean



Sun, 15 Apr 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. getting share name of a local drive

2. getting share name of a local drive

3. getting share name of local drive

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

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

6. What is network share name of local drive

7. Retreiving The Shared Directory Name On A Local Drive

8. WindowsNT local share name (Hidden or not)

9. Local share/UNC name

10. Local HD share name

11. Windows NT Local Share Name

12. Local share/UNC name

 

 
Powered by phpBB® Forum Software