473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Can we assign/get read/write registry values through javascript/vbscript?

Hi All,

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.

Can we get this functionality other than Wscript?
Jayanth
986-622-2617

Aug 2 '05 #1
3 17521


ja*******************@gmail.com wrote:

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.


It sounds you know how to change registry settings on Windows with
J(ava)Script or VBScript already, and you are even aware that a browser
is a special host environment putting restrictions on script.
If you need to change registry settings with script then choose a host
environment like WSH or HTA where script is allowed to do that, from
inside IE with normal security settings it is not allowed and there are
no ways to circumvent that.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Aug 2 '05 #2
VK

ja*******************@gmail.com wrote:
Hi All,

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.

Can we get this functionality other than Wscript?


You don't need WScript for this (neither JavaScript).

Simply make the right settings on one machine and export this branch
into .reg file.
The rest of your users will have to dowload it from the corporate
server and right-click / merge

Actually such thing as remote administration may appear useful, but
easier you do - better you get :-)

Aug 2 '05 #3
Hi

You can use WshShell.RegRead, WshShell.RegDelete and WshShell.RegWrite

You can also easilly browse trough the registry using a module called
Regobj.dll

var objReg = new ActiveXObject("RegObj.Registry");

Regobj.dll is also supposed to let you access the registry remotely
(never used it though)

You may want to use your script inside an html application (.hta)

http://msdn.microsoft.com/workshop/a...taoverview.asp

ja*******************@gmail.com wrote:
Hi All,

Can any one help me on how to read & write the local machines registry
values through scripting language. (vbscript/javscript)?

I tried with Wscript.Shell Command & but with this we need to change
the client browser setting's of each machine which is not possible in
real scenario.

Can we get this functionality other than Wscript?
Jayanth
986-622-2617


Aug 3 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matt | last post by:
If I assign VBScript server side variable a to javascript variable x, it is fine. <% Dim a, b a = 10 %> var x = <%= a %>; alert(x); But if I do the other way around, then it has 500 error....
2
by: sriram pasham | last post by:
Hi Could any one tell me how to access(read) a registry key using javascript from a webpage(ASP page). Thanks in advance. Sriram *** Sent via Developersdex http://www.developersdex.com ***...
1
by: Shryeash Patel | last post by:
I wanted to know how I can switch between the "Obtain an IP address from a DHCP Server" and "Specify an IP Address". In addition, how I can assign a static IP to the my network adapter.
6
by: George Hester | last post by:
This location has a parasite checker using javascript. It is in a js file called parasite.js. It is freely available. http://www.doxdesk.com/parasite/ He\She is the only one I trust on the...
8
by: Fred | last post by:
Hello, Is there a way to read values from the registry as regular instead of verbatim? Regards, Fred
0
by: David Virgil Hobbs | last post by:
While studying the asp.net javascript problem I saw and used pages about asp.net basics at http://www.sitepoint.com/article/815/4 and...
8
by: Sergei | last post by:
Hi, I am displaying modal dialog and passing values from the main form to the modal dialog and back. It works fine but if I used the following syntax on Page_Load(just for testing) in VB to...
0
by: Alan King | last post by:
To All: I'm having difficulty getting the syntax correct for VB.NET to produce a listing of all software applications on a remote PC listed in the registry installed programs. I'm able to get...
3
by: MSK | last post by:
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.