WoW Cache Clearer

This is a batch file that I wrote to do some quick clean ups everyday before I fire WoW up.

What it does:

Moves your Combat Log to a new folder and renames it to the current Year_Month_Day_WoWCombatLog.txt
(makes log parsing a little easier)

Moves your Chat Log to a new folder and renames it to the current Year_Month_Day_WoWChatLog.txt
(just so that my chat log is only todays chat)

Deletes your Creature Cache so that NPCScan will alert you to all rares everyday

Moves your screenshots to a new folder
(because I like to keep the WoW directory as clear as I can)

Zip file attached, but it is just as easy to copy the below text to a text editor and save as a .bat file.

Create a new text document on your desktop. Double click the file – it should be blank inside. Now, go to file>save as, and in the “Save As” window, input a name for your BAT file and then add a “.bat” on the end (without the quotes).

You will need to edit Lines 4, 7-10 to make it work on your installation.
Have fun.

I liked this idea however it seems that it get stuck when trying to launch a 2nd version of the game while one is already running. I assume it has something to do with being unable to rename Chatlog and CombatLog while logged into game and the batch file not handling the error well enough to launch the game when this happens. Any chance of it getting a fix?

Manged to create this file that just errors on a rename since the renamed file stays in same folder:
@ECHO OFF
D:
cd \World of Warcraft\Cache\WDB\enUS
if exist creaturecache.old del creaturecache.old
if exist creaturecache.wdb ren creaturecache.wdb creaturecache.old
cd \World of Warcraft\Logs\
if exist WoWCombatLog.txt ren WoWCombatLog.txt %Date:~10,4%-%Date:~4,2%-%Date:~7,2%-Combatlog.txt
if exist WoWChatLog.txt ren WoWChatLog.txt %Date:~10,4%-%Date:~4,2%-%Date:~7,2%-Chatlog.txt
@start D:\"World of Warcraft"\"Wow-64.exe"

I really like the idea of moving the logs to another folder but am unsure how i could impement that with proper error handling to allow the bat file to continue once it hits the can't rename file in use.