By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,658 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

read registry keys

P: n/a
Hi all!

I have some questions.
1. I write script which controls registry settings, which must work
on every computer.
If I try
JFSO = new ActiveXObject("Scripting.FileSystemObject");
JWS = new ActiveXObject("WScript.Shell");
key =
JWS.RegRead("HKLM\\Software\\Microsoft\\Windows\\C urrentVersion\\Run\\").toL
owerCase();
or
key =
JWS.RegRead("HKLM\\Software\\Microsoft\\Windows\\C urrentVersion\\Run").toLow
erCase();
I recieve the message:
"Unable to open registry key ... for reading."

I heard I can read it using WMI, but WMI must be installed
on every PC where my script will work. It's unreal.
Is there a possibility to read this key without WMI?

2. I would see content of binary file in a hexadecimal form.
How can I read binary file?

Thank in advance.
Boris A. Chertenko aka Borka.

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Borka wrote:
1. I write script which controls registry settings, which must work
on every computer.
Failure point one - many computers don't *have* a registry, so quite
obviously your "must work" will *always* fail.
JFSO = new ActiveXObject("Scripting.FileSystemObject");


Failure point two - the ActiveX is a Windows object so can *only* work
on Windows machines (or on those which have very deliberately chosen to
incorporate something similar).
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.