Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Read registry using vb/java scripts

5 views
Skip to first unread message

MSK

unread,
Jul 11, 2008, 7:34:46 AM7/11/08
to
Hi

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.

Mark Rae [MVP]

unread,
Jul 11, 2008, 8:24:48 AM7/11/08
to
"MSK" <kart...@googlemail.com> wrote in message
news:52bc4775-e633-4009...@i76g2000hsf.googlegroups.com...

> 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

unread,
Jul 11, 2008, 9:42:11 AM7/11/08
to
Thanks for immediate answers...

MSK

sloan

unread,
Jul 11, 2008, 9:51:15 AM7/11/08
to
Please do not multi post:

http://groups.google.com/group/microsoft.public.dotnet.general/browse_thread/thread/4ba70fffb2b5b78c#

"MSK" <kart...@googlemail.com> wrote in message
news:52bc4775-e633-4009...@i76g2000hsf.googlegroups.com...

0 new messages