davidshields
Programmer
I'm writing an ActiveX Control for my intranet html app. So far so
good - I've sucessfully created an ocx so I'm, over 1st hurdle!
However, my control requirement is to enumarate the LOCAL shares on
this client machine.
FileSystemObject allows me to enumerate shares on mapped local drives,
so I can find out P: is mapped to \\thingy\sharename fine, but...
How do I determine what folders I am sharing from my machine - e.g. if
C:\this\that\other is share1
c:\foo\bar\baz is share2
on local hard disk c:, how do I get at these bits of info.
FWIW, I managed to determine my local machine network name, so I'm
partway there (as I want the control to expose \\machinename\sharename
to my intranet app), but how do I collate this share information in VB
?.
I thought the WNET API might help, but my brain burnt out too soon.
I know the info is available, as windows explorer shows shares with the
little hand thingy, but I'm beggared if I can see how to get at it.
PS client platform can be W98/ME/W2K, so NT/2000 only solutions are
not really useful.
Any advice / help GREATLY appreciated.
D.
good - I've sucessfully created an ocx so I'm, over 1st hurdle!
However, my control requirement is to enumarate the LOCAL shares on
this client machine.
FileSystemObject allows me to enumerate shares on mapped local drives,
so I can find out P: is mapped to \\thingy\sharename fine, but...
How do I determine what folders I am sharing from my machine - e.g. if
C:\this\that\other is share1
c:\foo\bar\baz is share2
on local hard disk c:, how do I get at these bits of info.
FWIW, I managed to determine my local machine network name, so I'm
partway there (as I want the control to expose \\machinename\sharename
to my intranet app), but how do I collate this share information in VB
?.
I thought the WNET API might help, but my brain burnt out too soon.
I know the info is available, as windows explorer shows shares with the
little hand thingy, but I'm beggared if I can see how to get at it.
PS client platform can be W98/ME/W2K, so NT/2000 only solutions are
not really useful.
Any advice / help GREATLY appreciated.
D.