Root
Key Name
|
Abbreviation
|
HKEY_CURRENT_USER
|
HKCU
|
HKEY_LOCAL_MACHINE
|
HKLM
|
HKEY_CLASSES_ROOT
|
HKCR
|
HKEY_USERS
|
HKEY_USERS
|
HKEY_CURRENT_CONFIG
|
HKEY_CURRENT_CONFIG
|
<!DOCTYPE html PUBLIC "-//W3C//DTD
XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Reading Registry Value</title>
<script type="text/javascript">
function readValue() {
var
WshShell = new ActiveXObject("WScript.Shell");
var value = WshShell.RegRead("HKCU\\Software\\Microsoft\\FTP\\Use PASV");
document.write("Value of Use PASV:
" + value);
}
</script>
</head>
<body onload="javascript:
readValue()">
</body>
</html>
Note: This code works only in Internet Explorer.
Try not to become a man of success, but rather try to become a man of value. See the link below for more info.
ReplyDelete#value
www.ufgop.org
var WshShell = new ActiveXObject("WScript.Shell")
ReplyDeleteAutomation server can't create object
Add ip or domain of the application executing this script to Trusted sites
ReplyDelete