I am a newbie to ASP.NET and VBScript, currently I am designing a page
to show all the mapped drives using client-side scripts..
I want to read all the mapped drive details (name and Remote Path)
from the registry ("JKEY_CURRENT_USER\Network\") then I want to show
this in list box like
P: \\machine1\folder1
Z: \\mahcine2\folder2
How to read all the keys (i.e.: drive names D,E,F...Z) under "HKCU
\Network" and "RemotePath" key under each drive names using script
(VB or JAVA) ?
Also tell me how to use this script in the ASP.NET page or Class file
to fill the list box control
Its bit urgent..
Thanks in advance
Msk.
> I am a newbie to ASP.NET and VBScript, currently I am designing a page
> to show all the mapped drives using client-side scripts..
> I want to read all the mapped drive details (name and Remote Path)
> from the registry ("JKEY_CURRENT_USER\Network\") then I want to show
> this in list box like
>
> P: \\machine1\folder1
> Z: \\mahcine2\folder2
>
> How to read all the keys (i.e.: drive names D,E,F...Z) under "HKCU
> \Network" and "RemotePath" key under each drive names using script
> (VB or JAVA) ?
You have no chance whatsoever of doing this natively. All modern browsers
are designed specifically to prevent this sort of interaction with the
hardware / software on which the client browser is installed and running.
Your only option would be to use an ActiveX control. However, this would
restrict the browser to IE, and would mean that you will need to ramp the
browser security right down just to get it to work. I can't recommend this
at all.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
MSK
"MSK" <kart...@googlemail.com> wrote in message
news:52bc4775-e633-4009...@i76g2000hsf.googlegroups.com...