r

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • 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\fold er1
    Z: \\mahcine2\fold er2

    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.
  • =?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=

    #2
    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
    try{ Life(); } catch (TooDifficultException) { throw Toys(); }



    "MSK" wrote:
    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\fold er1
    Z: \\mahcine2\fold er2
    >
    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.
    >

    Comment

    Working...