Hi everyone, I am totally lost. I want to access the value for registry entry(installpath) where my application is installed through Java script. How do I do it? Thanks a lot, Shweta
Yuriy Fuksenko
Ranch Hand
Joined: Feb 02, 2001
Posts: 413
posted
0
Hi, this is an example form MSDN. You can look under Web Development\Scripting\Window Script Host Windows script host should be installed on machine (it usually is). var WshShell = new ActiveXObject("WScript.Shell"); WshShell.RegWrite ("HKCU\\Software\\ACME\\FortuneTeller\\", 1, "REG_BINARY"); WshShell.RegWrite ("HKCU\\Software\\ACME\\FortuneTeller\\MindReader", "Goocher!", "REG_SZ"); var Key1 = WshShell.RegRead ("HKCU\\Software\\ACME\\FortuneTeller\\"); var key2 = WshShell.RegRead ("HKCU\\Software\\ACME\\FortuneTeller\\MindReader"); WshShell.RegDelete ("HKCU\\Software\\ACME\\FortuneTeller\\MindReader"); WshShell.RegDelete ("HKCU\\Software\\ACME\\FortuneTeller\\"); WshShell.RegDelete ("HKCU\\Software\\ACME\\"); [ August 19, 2002: Message edited by: Yuriy Fuksenko ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Access Registry Entry through Java Script