1.

Solve : help delete old files?

Answer»

Hi everyone,
I am trying to do SOMETHING simple, but am having a hard time doing it.
I would LIKE to write a batch file that reads a drive and all subdirectories, then deletes all files OLDER than x days.
After the dir /s, what is the syntax for the if else statement?
thanks for the help!
Batch language does not do date CALCULATIONS. Unless you are prepared to write a BOATLOAD of IF statements to account for months of different lengths and of course leap years, you will need a Script for this.

Why did you not think that mentioning your OS would be relevant?



Discussion

No Comment Found