1.

Solve : Deleting folder based on name?

Answer»

I am running batch FILES to create directories and backup selected files to those directories. The directories are named based on the date (ie. 09212005).

Is it possible to create a batch file to run and delete certain directories if they are say 15 days old? Somehow perform a less than compared to todays date.

An example WOULD be APPRECIATED greatly!

Thanks so much for your help.DOS batch does not do date arithmetic unless you are prepared to write a boatload of IF statements. Windows Script is an option but need more info. Are the directory names the actual dates created? and what version of Windows are you using?

Get back to US.

The folders would have a name such as:

09212005

and I am using Windows XP Prof, any help would be greatly appreciated. There isn't a utitily for windows that would do something like this is it?



Discussion

No Comment Found