hi all,
I write a javascript for reading the registry value as follows
But it didn't return any value.
While using the ActiveXObject class any other points are there to be noted.
Please reply as early as possible
Thanks in advance
Grace
I write a javascript for reading the registry value as follows
Code:
<script language="javascript" type="text/javascript">
<!--
function ReadRegistry() {
var WshShell;
var Key;
try
{
WshShell = new ActiveXObject("WScript.Shell");
Key = WshShell.RegRead ("HKEY_LOCAL_MACHINE\\SOFTWARE\\MyApp\\TestValue");
}catch(e)
{
Key='';
}
document.getElementById("HiddenField1").value=Key;
}
</script>
While using the ActiveXObject class any other points are there to be noted.
Please reply as early as possible
Thanks in advance
Grace
Comment