hmm ok.
so this is what i have prepared for "showtime"
sRoot="c:\"
sCheckDate="|2010-06-15|2010-06-14|2010-06-13|2010-06-12|2010-06-11|2010-06-10|"
set oFSO=createobject("scripting.filesystemobject")
set oFolder=ofso.getfolder(sRoot)
for each oFile in oFolder.Files
sDate=ShowDate(oFile.datecreated)
if instr(sCheckDate,sDate)<>0 then
ofile.delete, true
end if
next
Function ShowDate(d)
ShowDate=year(d)& "-" & right("0" & month(d),2) & "-" & right("0" & day(d),2)
end function
is that correct? when i try to run it i get the following error
http://img252.imageshack.us/img252/2863/err.png
did i do something wrong?
oh and yes... i am american lol. good observation. =-)