|
-
Jan 26th, 2009, 01:45 PM
#1
Thread Starter
Addicted Member
vb6 - Delete folder with yesterdays date
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!!!!!!!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|