Break OnDim $SO,$SearchList$SO=SetOption('Explicit','On')$SO=SetOption('NoVarsInStrings','On') ; Example updates the DNS search list in the registry $SearchList = 'brooks.com,brook-1.com,welshing.com,nenavan.com,blakrt.com'RegUpdate('computername','HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters','SearchList',$SearchList,'REG_SZ')? 'Registry Update was: ' + @ERROR Function RegUpdate($System,$SubKey,$Entry,$Expression,optional $DataType) Dim $RC,$RegUpdate,$CurrentDataType,$CurrentEntry,$Remote If $System = "" $Remote = @WKSTA Else $Remote = $System EndIf $Remote = Join(Split($Remote, '\'), '', 3) $Remote = IIf($Remote <> '', '\\' + $Remote + '\', $Remote) $RegUpdate=0 If $DataType="" $DataType='REG_SZ' EndIf $CurrentDataType=ReadType($SubKey,$Entry) $CurrentEntry=ReadValue($SubKey,$Entry) If $CurrentEntry<>$Entry Or $CurrentDataType<>$DataType $RC = WriteValue($SubKey,$Entry,$Expression,$DataType) If @ERROR Exit @ERROR EndIF $RegUpdate=1 EndIf Exit @ERROREndFunction
Generated in 0.054 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.
") !=-1) { tempah=tempah.substring(tempah.indexOf("")+5,tempah.indexOf("")); codes[i].innerHTML="" + dotag(tempah.substring()) + ""; } } //var pres = document.getElementsByTagName("pre"); //for (var i=0, maxi = pres.length; i < maxi; i++) { // var tempah = pres[i].innerHTML; // if (tempah.indexOf("[postprep") !=-1) { // tempah=tempah.substring((tempah.indexOf("]",tempah.indexOf("[postprep"))+1)); // pres[i].innerHTML=dotag(tempah); // } //} function ytag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = codes[which_one].innerHTML; codes[which_one].innerHTML = "" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; } function ttag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = ""; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; }
")+5,tempah.indexOf("
" + dotag(tempah.substring()) + "
" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + "
"),thisone.indexOf("
"; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + "