tigermatt
asked on
VBS to clear out UCEArchive
I would like a VBS that can look at a certain directory and delete files created over a week ago.
This will run once a day (as a scheduled task preferably) to look at my Exchange Server's UCEArchive folder - where suspect spam mail is stored - and delete any files in that folder which were created over a week ago. I need this grace period between mail going in there and being deleted so we can retrieve it if it was legitimate.
Thanks in advance
This will run once a day (as a scheduled task preferably) to look at my Exchange Server's UCEArchive folder - where suspect spam mail is stored - and delete any files in that folder which were created over a week ago. I need this grace period between mail going in there and being deleted so we can retrieve it if it was legitimate.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Brilliant,
thanks Chandru
thanks Chandru
Glad I am of help!
ASKER
How do I make it run as a scheduled task? Can I use the following command?
%windir%\system32\cscript.
Thanks
-tigermatt