[c:\tmp]net share
Share name Resource Remark
-------------------------------------------------------------------------
IPC$ Remote IPC
C$ C:\ Default share
D$ D:\ Default share
ADMIN$ C:\WINNT Remote Admin
cucu d:\temp
The command completed successfully.
I would like to give the name of the share "cucu" and get back "d:\temp"
Thanks in advance,
aaron
Under NT, you can use NetShareGetInfo with an information level of 2.
Under Lose95/98 the field exists in the structure, but it's listed as
"TBD" -- IOW, it's not presently implemented. Alternatively, you
could use LDAP or ADSI. It looks like ADSI should support what you
want, but I haven't looked through LDAP carefully enough to figure out
whether it does for sure or not.