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>Deleting Registry</title>
<script type="text/javascript">
function deleteRegistry() {
var
WshShell = new ActiveXObject("WScript.Shell");
WshShell.RegDelete("HKCU\\Software\\ColdSoft
Technologies\\W2SS");
document.writeln("Registry Deleted
Successfully");
}
</script>
</head>
<body onload="javascript:
deleteRegistry()">
</body>
</html>
Note: This code works only in Internet Explorer.
No comments:
Post a Comment