Players in Dungeon Crawl Stone Soup eventually face a dilemma. They have played so many different characters, abandoning some along the way, that the game is cluttered with saves. This new batch file will clean out your save directories and your backup save directories with the click of a button. A minor gadget, true, but useful nonetheless. As a precaution, a pause gives you the option of aborting the process, in case you clicked it by mistake. Do avail yourself of that safeguard, because once something gets deleted in an MS-DOS window, that's that.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@echo off
cls
echo cleanslate.bat for Dungeon Crawl
echo by igor
echo http://techlorebyigor.blogspot.com
echo.
echo.
c:
cd\games\crawl
echo. Are you sure you want to delete ALL of your saved games?
echo.
echo. If not, abort this window or press Ctrl-C now.
echo. If you really want to delete your saved games, press Enter.
echo.
pause
rd backup_saves /S /Q
rd backup_saves_2 /S /Q
rem this will spare the subdirectories such as db and des.
del saves\*.* /Q
pause
exit
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Update 5/25/2010: I spare subdirectories saves\db and saves\des from deletion, because the 5/24/2010 beta version of Crawl .7 tends to crash upon initialization if these subdirs do not exist. I do not think these subdirs ever change, so this should improve efficiency anyway. If my assumption proves mistaken, replace "del saves\*.* /Q", above, with "rd saves /S /Q".
No comments:
Post a Comment