Hi everybody, can someone kindly tell me the most simple way to delete a specific folder with yesterdays date.
My code creates a test folder everyday with the current date.
fso.createfolder "c:\" & "Test" & Date$

what i want to do is to that before the code creates folder with current date, it should delete folder with the name "Test" alongwith yesterdays date...

if fso.folderexist("c:\" & "Test" & Date$-1) = True then
fso.deletfolder "c:\" & "Test" & Date$-1
fso.createfolder "c:\" & "Test" & Date$
But it doesn't delete and i know something wrong with the underlined code.

Thanx!!!!!!!!!!