Archive for the ‘Batch File’ Category

Batch Command To Delete Old Files Using Forfiles.exe

Tuesday, May 5th, 2009

2009-05-05 Initial Post

You can use the Forfiles command to search for files with certain parameters and then execute commands against the results. This is useful for automated cleanup of backup and log files. (more…)

Batch Commands To Name Output File With Current Date

Saturday, September 20th, 2008

2008-09-20 Initial Post

Here is a sample batch file that names the output file based on the current date. If the file was run on 09-20-2008, the output file name would be LDIFDE_Export_All_2008-09-20.ldf. (more…)