Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%
Language="JScript"%>
<%
var oWSH = new ActiveXObject("WScript.Shell");
var regKey = "HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Test";
Response.Write("Current test key: " + regKey + "<br><br>");
try {
oWSH.RegWrite(regKey, "myString", "REG_SZ");
}
catch(e) {
Response.Write("ERROR: Writing to " + regKey + "<br>Did you set the security permissions to allow IUSR to read/write?");
}
finally {
Response.Write("Wrote to " + regKey + "<br>");
}
try {
var regVal = oWSH.RegRead(regKey);
}
catch (e) {
Response.Write("Key doesn't exist!<br>");
}
finally {
if (regVal == regKey) {
Response.Write("Value is NULL<br>");
}
else if (regVal == undefined) {
Response.Write("Key didn't exist. No value");
}
else {
Response.Write("Value = " + regVal + "<br>");
}
}
try {
oWSH.RegDelete(regKey);
}
catch (e) {
Response.Write("The key " + regKey + " could not be removed.<br>");
}
finally {
Response.Write("The key " + regKey + " has been removed.<br>");
}
%>