Nice. Unfortunately I'm not going to use it. But thanks. This helped me alot because I have been trying to learn more about cmd.exe and batch files. Thanks to this and Microsoft.com I think I actually made a pretty good Random.dat deleter. Mine that I made was REALLY simple before because I didn't know much about this stuff. The old one looked like this:
Code:
del c:\WINNT\.jagex_cache_32\random.dat
del c:\WINDOWS\.jagex_cache_32\random.dat
del c:\.jagex_cache_32
now looks like this:
Code:
@ECHO OFF
CLS
ECHO ===========================================================================
ECHO.
ECHO STEP #1:
ECHO --------
ECHO.
ECHO Please close all instances (windows) of RuneScape before continuing!
ECHO.
ECHO ===========================================================================
ECHO.
PAUSE
CLS
ECHO ===========================================================================
ECHO.
ECHO STEP #2:
ECHO --------
ECHO Deleting Random.dat
ECHO.
ECHO ===========================================================================
ECHO.
IF EXIST c:\WINNT\.jagex_cache_32\random.dat echo Deleted Random.dat on c:\WINNT
IF EXIST c:\WINNT\.jagex_cache_32\random.dat ( del c:\WINNT\.jagex_cache_32\random.dat ) ELSE echo Random.dat wasn't found on c:\WINNT
IF EXIST c:\WINDOWS\.jagex_cache_32\random.dat echo Deleted Random.dat on c:\WINDOWS
IF EXIST c:\WINDOWS\.jagex_cache_32\random.dat ( del c:\WINDOWS\.jagex_cache_32\random.dat ) ELSE echo Random.dat wasn't found on c:\WINDOWS
IF EXIST c:\.jagex_cache_32\random.dat echo Deleted Random.dat on c:\.jagex_cache_32
IF EXIST c:\.jagex_cache_32\random.dat ( del c:\.jagex_cache_32 ) ELSE echo Random.dat wasn't found on c:\.jagex_cache_32
ECHO.
ECHO.
PAUSE
EXIT
Basically checks to see if it is there. If it is there it will say that it deleted it. Next line it will check if it is there and if it is it will delete. If it is not there is will say it couldn't find it. Took me a long time to figure out how to make it say that it was deleted. Ended up making it check for it before it deleted it and it would say that it deleted it before it actually deletes it.
Thanks again