473,385 Members | 1,372 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.

Using JavaScript and VBScript scripting to access the windows registry

Is there any difference to read & write to windows Registry with
VBScript or JavaScript?
Both scripting languages have similar syntax. What is preferable use
for this?

thanks.

Apr 8 '06 #1
4 6327
VK

ko****@hotmail.com wrote:
Is there any difference to read & write to windows Registry with
VBScript or JavaScript?


There is not any. Both languages are not able to do it.

If you are using local (file://) script to access FileSystemObject,
then it is also irrelevant what language to use: JScript or VBScript.
FileSystemObject is not part of neither of both, so its method/property
set is equal.

Apr 8 '06 #2

"VK" <sc**********@yahoo.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...

ko****@hotmail.com wrote:
Is there any difference to read & write to windows Registry with
VBScript or JavaScript?


There is not any. Both languages are not able to do it.

If you are using local (file://) script to access FileSystemObject,
then it is also irrelevant what language to use: JScript or VBScript.
FileSystemObject is not part of neither of both, so its method/property
set is equal.


VBScript can access the fileSystemObject - just not *normally* from a web
page.
Remember the "I-Love-You.vbs" virus ?
Put a "vbs" extension on a file with VBScript, and it'll run with a
double-click.
Apr 9 '06 #3
ko****@hotmail.com wrote:
Is there any difference to read & write to windows
Registry with VBScript or JavaScript?
Presumably you are referring to the interfaces to the Windows Registry
provided by Windows Scripting Host. In WSH the host provides the same
object model to whichever scripting language is used; the same objects,
methods, properties, etc.
Both scripting languages have similar syntax.
No they don't.
What is preferable use
for this?


If you only know one of those languages then that one is probably the
best to use. If you know both then whichever you prefer is going to be
the best. And if you know neither VBScript may be best as it is the
language used in the vast majority of examples of WSH scripting.

Richard.
Apr 9 '06 #4

Richard Cornford писал(а):

ko****@hotmail.com wrote:
Is there any difference to read & write to windows
Registry with VBScript or JavaScript?
Presumably you are referring to the interfaces to the Windows Registry
provided by Windows Scripting Host. In WSH the host provides the same
object model to whichever scripting language is used; the same objects,
methods, properties, etc. Both scripting languages have similar syntax. No they don't.
What is preferable use for this?
If you only know one of those languages then that one is probably the
best to use. If you know both then whichever you prefer is going to be
the best. And if you know neither VBScript may be best as it is the
language used in the vast majority of examples of WSH scripting. Richard.

--------------
When we need use Windows Scripting Host, both languages have almost
similar syntax:

<script language="VBScript">
<!--
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
....
<script language="javascript">
<!--
var WshShell = WScript.CreateObject("WScript.Shell");
....

The difference only that Javascript have no 'Dim WSHShell' line. Or it
need this also? Also, if we use mostly Javascript for webpage, we can
use Javascript for WSH.

Korund

Apr 10 '06 #5

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

Similar topics

4
by: John Benson | last post by:
Hi, I'm in a tightly-secured environment where I may not be allowed to use Python for some scripting work, and may have to fall back on what came with Windows 2K. I'm cracking "VBScript in a...
6
by: John Davis | last post by:
Just wonder if <%@ Language="JAVASCRIPT" %> exists?? Since JavaScript is used in client-side scripting, but <% ... %> is used in server-side scripting. It sounds doesn't make sense. But I saw...
8
by: Martin | last post by:
Hi, I've got a funny and wanted to know if there is a fix out there for this. I display a jsp inside a frame that monitors the database and reloads itself via the setTimeout js function. To...
3
by: jayanth.vishnuvardhan | last post by:
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...
1
by: Peter Petrillo | last post by:
The Access development group here at this company has exported its reports in xml format from Access 2003. I have no influence on how they have created them. I received the following files xm...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
3
by: Angus Comber | last post by:
Hello Can javascript call/reference COM object. VBScript can do this (as it is from Microsoft). Can javascript? If so how? Angus
42
by: (PeteCresswell) | last post by:
I skimmed the MS spiel at http://msdn.microsoft.com/sql/express, and noted the part about "all inside the Visual Studio 2005 environment". Do the older SQL server tools for security and stored...
11
by: Doug van Vianen | last post by:
Hi, I often like to include some JavaScript coding in my web pages to make them more interesting. Unfortunately, even when this coding is as simple as a check to see what the display width is in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.