View Poll Results: How Well Did These Batch Files Work?

Voters
13. This poll is closed
  • Deleted all of the RANDOM.DAT files on hard drive C:?

    10 76.92%
  • Deleted other files accidentally?

    3 23.08%
Results 1 to 18 of 18

Thread: DarkStalker's RANDOM.DAT Batch File Deleter

  1. #1
    Join Date
    May 2007
    Location
    North Carolina, USA
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    DarkStalker's RANDOM.DAT Deleter

    DarkStalker's (drkstlkr) RANDOM.DAT Deleter
    Batch Files

    Here's my two-cent contribution to the RuneScape community!

    I wasn't sure where to post this, so please don't get angry if this post needs to be moved or deleted!

    Ok, I know this place is mostly for SRL scripts, but with many people wanting an easy way to delete the RANDOM.DAT file(s), I decided to make a couple of simple DOS batch files that do it for you. Since Jagex may store the RANDOM.DAT file in numerous different folders, and different Windows versions have slightly different folder names and locations, these batch files simply scans the entire hard disk drive C:, which is the most common drive where Windows is stored, and deletes the RANDOM.DAT file(s) for you.

    I personally run a dual-boot system, with Microsoft Windows Vista Ultimate 64-bit running on my hard disk drive C:, and Microsoft Windows XP Professional with Service Pack 2 32-bit edition on hard disk drive J:. Even while playing RuneScape in XP, Jagex still stores the RANDOM.DAT file on my hard disk drive C:. So, hopefully, these batch files should work for most people.

    Why an ugly, text-only DOS batch file? For a few reasons:
    1. Doesn't require a degree to write or edit a DOS batch file. Anyone can edit them using any text editor, such as Notepad, to suite their personal configurations and needs.
    2. Compatible with almost all versions of Windows (tested and works on both
    Windows XP Pro w/ SP2 32-bit and Vista Ultimate 64-bit editions).
    3. View with any text editor, such as Notepad, and run these batch files with confidence, knowing that these batch files won't purposefully try to sabotage your computer in any way.

    Two Different Versions:
    dRandomA.bat (Advanced): Scans your hard disk drive C: first and allows you to stop before deleting all of the RANDOM.DAT files found. (safer)
    dRandomB.bat (Basic): Doesn't scan your hard disk drive C: and automatically deletes all of the RANDOM.DAT files found. (faster)

    Since some programs use a RANDOM.DAT file to function properly, I highly recommend running "dRandomA.bat" first to see all of the RANDOM.DAT files stored on your hard disk drive C: before deciding to delete them all. You may also Google "random.dat" to see what programs may use this file. Once you can determine you don't have any programs (outside of RuneScape, of course) that uses RANDOM.DAT files, then you may use "dRandomB.bat" afterwards. However, due to the nature of these batch files, I will NOT be held responsible for any accidentally deleted files! Use at your own risk!

    Please let me know what you think!

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    From:
    DarkStalker (drkstlkr)
    Script Tester and Wanna-Be Scripter
    Please Visit My RuneScape Webpage At:
    http://webpages.charter.net/drkstlkr/OnlineGaming.htm



  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    I'll check it out. Hope it is clean :\


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    May 2007
    Location
    North Carolina, USA
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    They're Clean

    Quote Originally Posted by Hy71194 View Post
    I'll check it out. Hope it is clean :\
    Heheheh... they're clean. They're just two DOS batch files that can be easily viewed and edited with any text editor, such as Notepad. I thought about writing them in something like VisualBasic, but I know I'm always weary of running unknown programs. So, I decided to keep them simple, easily viewed and edited as Jagex likes to change filenames and the such, and can be easily ran on virtually almost any computer running something made from Micro$oft.


    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    From:
    DarkStalker (drkstlkr)
    Script Tester and Wanna-Be Scripter
    Please Visit My RuneScape Webpage At:
    http://webpages.charter.net/drkstlkr/OnlineGaming.htm



  4. #4
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Well done.
    Verrekte Koekwous

  5. #5
    Join Date
    May 2007
    Location
    North Carolina, USA
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Thanks!

    Quote Originally Posted by mastaraymond View Post
    Well done.
    Thanks! I know they're not much, but they do the job.

    I wish there was an easier way to incorporate variables and choices in the batch files so that people can pick the drive letter Windows is installed on without having to use the Command Prompt (yes, I have actually seen a Windows partition installed on a different drive letter than C: from from the manufacturer), but Windows XP or Vista doesn't support those commands anymore.

    I suppose the real test is for someone who has a single version of Windows installed on a different drive other than C:, or a dual-boot system where another OS, such as Linux, is installed on drive C: instead. Those instances is where I wish I could add the above commands in the batch files.

    Oh well, what can you do? Blasted Micro$oft!
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    From:
    DarkStalker (drkstlkr)
    Script Tester and Wanna-Be Scripter
    Please Visit My RuneScape Webpage At:
    http://webpages.charter.net/drkstlkr/OnlineGaming.htm



  6. #6
    Join Date
    Jul 2007
    Location
    Players[CurrentPlayer].Loc:='Bank'
    Posts
    875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry but till someones specifically says its good i wont use it. No offense to you but i fear anything ending in .bat
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

  7. #7
    Join Date
    Jan 2007
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Right click it. Then edit. Look at the coding.
    I like cats.
    Narcle's AK Smelter 1.1.6
    Run Time : 7 Hr 53 Min 5 Sec
    Total Bars : 3371
    Total XP : 58995

  8. #8
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Nice work just tried it out, i looked at the path and they all had jagex in it so i let it delete. Its nice and safe.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  9. #9
    Join Date
    Jun 2007
    Location
    NSW, Australia.
    Posts
    541
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good job, found it useful
    Quote Originally Posted by RAM View Post
    I sam sofa king wee todd did ! ~RAM
    My SRL Army Blog.


  10. #10
    Join Date
    Feb 2006
    Location
    Locked in RAM's closet !
    Posts
    2,001
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by richk1693 View Post
    Sorry but till someones specifically says its good i wont use it. No offense to you but i fear anything ending in .bat

    its safe.

    very nice you got some advertising going down in there to

    no matter
    Darky has stopped by to say hello :).
    10-21-2010
    Updated-
    10-09-2012

  11. #11
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Blegh, I mis-hit it. Is there a way to change my vote? It worked fine. =/
    Active only during the Summer...

  12. #12
    Join Date
    Jul 2007
    Location
    Mo-Town
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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
    Quote Originally Posted by Napolean
    In Politics, Stupidity is Not a Handicap
    Quote Originally Posted by Unknown
    Marriage is like a bank. You put it in, Pull it out, then lose interest.

  13. #13
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice work . i like it.
    but it tooks a bit long because you need to puss a bit much the enter key .

  14. #14
    Join Date
    May 2007
    Location
    North Carolina, USA
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Reply To: rikjess

    Quote Originally Posted by rikjess View Post
    nice work . i like it.
    but it tooks a bit long because you need to puss a bit much the enter key .
    Heheheheh... that's why I made 2 versions. Once you find out you don't have any other programs that uses RANDOM.DAT files, then it's probably safe to use the "
    dRandomB.bat" file until you install a new program, and may wanna use "dRandomA.bat" just to see if it uses a RANDOM.DAT file. The "dRandomB.bat" requires much less user input. You simply run it, wait a few, and it automatically exits. Done and done.

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    From:
    DarkStalker (drkstlkr)
    Script Tester and Wanna-Be Scripter
    Please Visit My RuneScape Webpage At:
    http://webpages.charter.net/drkstlkr/OnlineGaming.htm



  15. #15
    Join Date
    May 2007
    Location
    North Carolina, USA
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Reply To: nething

    Quote Originally Posted by nething View Post
    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
    Yeah... I thought about making it very specific to certain folders so that it's faster, but as we all know how Jagex likes to change stuff up. So, keeping this in mind, if Jagex decides to change filenames and/or folders, keeping it "open-ended" eliminates having to update your batch file as often. With mine, all I have to do is just replace the filename if they decide to change it again. I'm not sure how fast this batch file runs on other people's computers, but it only takes about 5 seconds for the "dRandomB.bat" to run on mine. But, I'm glad someone who's wanting to learn more about batch files found it useful. I personally stink at writing scripts, but batch files... been doing that since MS-DOS 3.3 and Windows 3.1 was common on new computers at the time.
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    From:
    DarkStalker (drkstlkr)
    Script Tester and Wanna-Be Scripter
    Please Visit My RuneScape Webpage At:
    http://webpages.charter.net/drkstlkr/OnlineGaming.htm



  16. #16
    Join Date
    Apr 2007
    Location
    Rimmington
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    job well done it even worked with shitasta

    [vista]
    Learning To Code - So Excuse the n00b questions!

  17. #17
    Join Date
    Jun 2007
    Location
    brooklyn ny
    Posts
    683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    uhh not so bad could be better

  18. #18
    Join Date
    May 2007
    Location
    North Carolina, USA
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by mark9510 View Post
    uhh not so bad could be better
    Yeah, it could've been better if WinXP/Vista supported all of the old DOS functionality, such as "IF ERRORLEVEL" and the such. Outside of that, not much more you can do with DOS batch files.

    Why don't ya write something better? :-)
    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    From:
    DarkStalker (drkstlkr)
    Script Tester and Wanna-Be Scripter
    Please Visit My RuneScape Webpage At:
    http://webpages.charter.net/drkstlkr/OnlineGaming.htm



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. UID Deleter [Program]
    By Sp0rky in forum Bot Information and Spottings
    Replies: 116
    Last Post: 12-02-2007, 06:22 AM
  2. Vb UID deleter
    By jhildy in forum C#/Visual Basic Help and Tutorials
    Replies: 7
    Last Post: 11-02-2007, 05:45 AM
  3. Batch file
    By Bobarkinator in forum RS3 Outdated / Broken Scripts
    Replies: 8
    Last Post: 07-03-2007, 04:07 PM
  4. Batch File Question & First Post
    By snobrder in forum Bot Information and Spottings
    Replies: 1
    Last Post: 01-21-2007, 06:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •