I've been having this mega-problem for a while now.
I'm trying to access the Registry; I've tried using PHP (server-side, so won't work), so I've gone client side, and seeking for the solution within Javascript.
I know theres a lot of issues with accessing the Registry from Javascript, mainly having to have low security settings in order to beable to read it, and so on, but this won't be an issue (hopefully) as once I have got the program to do what I want, I'm handing it over to people who can deal with all the .hta and certificate stuff.
I'm pretty proficient in Javascript, but I can't get any script working for the life in me.
Here's some code I've found and been playing about with:
Expand|Select|Wrap|Line Numbers
- function shell(){
- var sh1 = new ActiveXObject("WScript.Shell");
- var sh2 = sh1.RegRead("HKEY_CURRENT_USER");
- alert(sh2);
- }
Thanks in advance :)