function readJREValue() { document.write("<b>Java Runtime Environment properties of your computer : </b>") document.write("<br>") var WshShell = new ActiveXObject("WScript.Shell"); var value = WshShell.RegRead("HKLM\\Software\\JavaSoft\\Java Runtime Environment\\BrowserJavaVersion"); document.write("Your JRE Browser Version Is: " + value); document.write("<br>"); var value2 = WshShell.RegRead("HKLM\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion"); document.write("Your JRE CurrnetVersion Is: " + value2); document.write("<br>"); var value3 = WshShell.RegRead("HKLM\\Software\\JavaSoft\\Java Runtime Environment\\Java6FamilyVersion"); document.write("Version OF Java6FamilyVersion Is: " + value3); document.write("<br>"); var value4 = WshShell.RegRead("HKLM\\Software\\JavaSoft\\Java Runtime Environment\\Java7FamilyVersion"); document.write("Version OF Java7FamilyVersion Is: " + value4); document.write("<br>"); var value1 = WshShell.RegRead("HKLM\\Software\\JavaSoft\\Java Runtime Environment\\1.6.0_45\\JavaHome"); document.write("JRE Installed Path : " + value1); document.write("<br>"); };
RegEnumKey
RegEnumValue
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)