I've spent this morning scouring Google, and having turned up empty-handed have come here to find my answer. And you guys always deliver awesomeness.

At the end of a batch file, I want to append a date/time to a text file. This will serve as a simple history log file. That part is easy.

Code:

```
ECHO %DATE:~10,4%%DATE:~4,2%%DATE:~7,2% %TIME% Process Complete >> C:\Installs\~AcctRefreshLog.txt

```

Output:

```
20130624 11:51:32.45 Process Complete

```

Now, I want to limit this to 30 days of history. That is what I have come to you to find. I had thought about creating individual files with the date/time in the filename in a folder, and inserting commands to delete any files older than 30 days, but the boss wants a small footprint, a single file to use.

Any thoughts or ideas?