| 1. |
Solve : Batch file to periodically delete certain files? |
|
Answer» Hi, I need to MAKE a batch file that will delete all of the *.log files in a particular directory every 10 days, but I'm not having much luck. I was thinking of writing a flag file and then everytime the user starts this program the batch file is launched and COMPARES the current system date to the flag file's last modified date and if it's 10 days or more difference, DELETES all of the log files and makes a change to the flag file (to update it's last modified date). Any batch-gurus know of a way to do this?this would wurk?: |
|