By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

Read registry using vb/java scripts

P: n/a
MSK
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.
Jul 11 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"MSK" <ka******@googlemail.comwrote in message
news:52**********************************@i76g2000 hsf.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

Jul 11 '08 #2

P: n/a
MSK
Thanks for immediate answers...

MSK
Jul 11 '08 #3

P: n/a
Please do not multi post:

http://groups.google.com/group/micro...70fffb2b5b78c#

"MSK" <ka******@googlemail.comwrote in message
news:52**********************************@i76g2000 hsf.googlegroups.com...
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.

Jul 11 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.