r

  • Thread starter Thread starter MSK
  • Start date Start date
M

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.
 
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.
 
Back
Top