Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - r

Reply
 
Old 07-11-2008   #1 (permalink)
MSK


 
 

r

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.

My System SpecsSystem Spec
Old 07-11-2008   #2 (permalink)
Ciaran O''Donnell


 
 

r

You cant access the registry on the client as browsers dont allow that access
from javascript or vbscript.
On the server you could run code to read the registry but that wont help as
you would possibly get it from the account that runs the ASP.NET worker
process which probably wont have any mapped drives.
Why is this a web application and not a windows forms application. Then you
would be able to do all this stuff.


--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com


"MSK" wrote:
Quote:

> 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.
>
My System SpecsSystem Spec
Reply

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46