code:var boolEnabled = false; // default value
try {
boolEnabled = new ActiveXObject("WScript.Shell").RegRead(MsgPlus.ScriptRegPath + "\\SomeEntry");
}
catch( e ) {
// error handling
}
// use boolEnabled here with either default value or read value
This post was edited on 04-25-2008 at 06:13 PM by mynetx.