Results 1 to 4 of 4

Thread: Using vb/java scripts how to read registry

  1. #1
    Join Date
    Jan 2009
    Posts
    10

    Using vb/java scripts how to read registry

    Hi,
    In ASP.Net I am trying to show all mapped drives on the webpage using client script. I want to read all the mapped drive details.
    Please tell me 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) ?

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Using vb/java scripts how to read registry

    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.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Using vb/java scripts how to read registry

    Web pages don't normally have access to the registry (or specifically just to the list of mapped drives), for obvious security reasons. There are multiple approaches you can look into:

    - You can use server-side WMI (see, for example, url]http://www.microsoft.com/technet/scriptcenter/resources/qanda/oct05 hey1027.mspx)[/url]. This requires that the web server (and the account the page is running under) have remote access to the client computer's WMI interfaces.

    - You can write an ActiveX component in .NET for accessing the list of network drives (using WMI, for example) and deploy it in your website. This requires the use of IE and may need lowered security.

    - You can deploy client-side scripts for WMI, which can post the information to a website (or do anything else with it). These have to be run outside the web browser, but they can be downloaded from the web browser. Again, this may need security adjustments.

    - You can deploy the application as fully client-side, for example through ClickOnce.

    Note that in most cases, you should prefer WMI to direct registry access, as it saves you the trouble of interpreting information in the registry yourself (which is error-prone and subject to breaking on changes). WMI has a rich object model that exposes just about anything you could be interested in.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: Using vb/java scripts how to read registry

    Please have a look here:

    http://www.doxdesk.com/parasite/

    Remember it loads a js file 2 in fact. One called parasite.js this is the link for that:

    http://www.doxdesk.com/file/software/js/parasite.js

    and another called report.js which is here:

    http://www.doxdesk.com/script/report.js

    If you do a whois search you ought to find it is a legitimate site.
    Maybe it was just down when you tried.

Similar Threads

  1. Delphi, TWebBrowser & Java Scripts.
    By alex198555 in forum Software Development
    Replies: 1
    Last Post: 28-07-2010, 11:23 AM
  2. Scanner can't read in java
    By cyber-noob in forum Software Development
    Replies: 3
    Last Post: 14-11-2009, 12:42 PM
  3. How to read the registry before .NET
    By HarshaB in forum Software Development
    Replies: 4
    Last Post: 29-10-2009, 07:51 AM
  4. Replies: 2
    Last Post: 27-09-2008, 05:02 PM
  5. Replies: 3
    Last Post: 16-01-2008, 10:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,135,316.95098 seconds with 16 queries