PC Review


Reply
Thread Tools Rate Thread

Delete folder after a FORFILES delete

 
 
johnny.hall@gmail.com
Guest
Posts: n/a
 
      15th Jul 2005
Hello everyone,

I know this question has been asked a million times, but I have a
slightly different spin on it.

I would like to delete files older than 14 days. I have been using
FORFILES to achieve this. After the files have been deleted I then
want the script to purge any empty folders that had originally
contained files.

In other words, if a folder was originally empty and older than 14 days
it is not purged. If it originally contained files and is now empty,
then delete the folder.

All help is greatly appreciated

Johnny

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Macro to delete email from Sent Folder and Delete Folder =?Utf-8?B?VmlzaGFs?= Microsoft Outlook VBA Programming 3 24th Feb 2007 04:52 AM
Outlook will not delete messages fron the delete folder when exit =?Utf-8?B?amFjazk0NQ==?= Microsoft Outlook Discussion 1 29th Sep 2005 11:59 PM
delete files on date basis with forfiles Marc Microsoft Windows 2000 CMD Promt 2 10th Sep 2003 06:04 PM
Re: My server is tagged by someone, I cannot delete the folder they open, some are no name folder and some cannot delete, what should i do? Lanwench [MVP - Exchange] Microsoft Windows 2000 Networking 8 17th Jul 2003 08:14 PM
My server is tagged by someone, I cannot delete the folder they open, some are no name folder and some cannot delete, what should i do? hkjamjam Microsoft Windows 2000 Security 1 15th Jul 2003 08:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:34 PM.