CLS BREAK ON IF EXIST('H:\Profileremove.csv') DEL 'H:\Profileremove.csv' ENDIF FOR EACH $i IN Split('01 03') $loc='\\CITRIX'+$i+'\admin$$\profiles\' $rc=WshPipe('%comspec% /c dir '+$loc+'*.*',1) FOR EACH $line IN $rc IF NOT instr($line, 'File Not Found') ;?$line ; -- Convert American Dates to European format $dtchk=split(split($line)[0],'/')[2]+'/'+split(split($line)[0],'/')[0]+'/'+split(split($line)[0],'/')[1] ;?$dtchk $name=split($line)[17] $dt=DATECALC($dtchk,@date) IF val($dt)>2 AND len($name)>3 AND $name<>'All Users' AND $name<>'DEFAULT' ?'Days ago: '+$dt ?$loc+$name ;SHELL '%COMSPEC% /C RD /S /Q '+chr(34)+$loc+'\'+$name+chr(34) If @error<>$err=1 ELSE $err=0 ENDIF $logdata='Days ago: '+$dt+','+$loc+$name+','+$err LOGGER('H:\Profileremove.csv',$logdata+@crlf) ENDIF ENDIF NEXT NEXT MAILER('recipient@@company.com','Profiles remove Log','Removal Log','H:\Profileremove.csv')
Generated in 0.054 seconds in which 0.022 seconds were spent on a total of 13 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 + "