code:var Shell = new ActiveXObject('WScript.Shell'); if (something == Shell.RegRead('key name') { dothis }