Page 1 of 2
1
2
LastLast
  1. #1

    Question Battle.net Launcher .bat

    Hey there

    I've always used my small .bat file to automatically delete cache for NPCScan upon starting the game,
    Code:
    @echo off
    del "Cache\WDB\enGB\creaturecache.wdb"
    start  WoW-64.exe
    I was wondering if there is a way to do this with the new Battle.net Launcher, so that it starts WoW from the Launcher (not JUST the launcher, but as if I would click "play", on Wow section of the launcher)

  2. #2
    The battle.net launcher does not support command-line arguments as far as I'm aware so no, not possible.

  3. #3
    There's no easy way to get between the launcher and the launch of wow. Why not modify your bat file to delete the cache every time the launcher is executed?

  4. #4
    I have the Battle.net Launcher on startup, if I can add a bat to a startup I would do this.

    Lets say though I have a big session on timeless isle, 60% of rares are in cache, what I would do pre-b.net launcher is close wow, press bat, wow loads, cache is cleared.

    For it to work with b.net launcher, I would have to close WoW, then close bnet launcher, relaunch that with the bat, and run wow from the launcher.

  5. #5
    The Patient
    Join Date
    Feb 2012
    Location
    England
    Posts
    273
    I can't quite remember how I did this. But it involved some command line to get the launcher on the taskbar to begin with. Once I get back from work I'll see if I can locate specifically how I got this to work, but it is possible.
    Arneia/Panthea - Guild Master + Raid Leader - <Catalyst> 25man Horde - Tarren Mill - Currently Recruiting: Click for more info

  6. #6
    I guess you could also use the *.bat file for clearing the cache, just by removing the WoW's exe line from it.
    So, if you do it:
    1) Close WoW.
    2) Run the *.bat file.
    3) Start WoW via Launcher or w/e.

  7. #7
    Quote Originally Posted by Otzsx View Post
    Hey there

    I've always used my small .bat file to automatically delete cache for NPCScan upon starting the game,
    Code:
    @echo off
    del "Cache\WDB\enGB\creaturecache.wdb"
    start  WoW-64.exe
    I was wondering if there is a way to do this with the new Battle.net Launcher, so that it starts WoW from the Launcher (not JUST the launcher, but as if I would click "play", on Wow section of the launcher)
    Just have a batch file that deletes the cache.

    If you start the battle.net launcher at startup, and it's active in the background (after you close out of WoW), you should be able to delete the WoW cache files without issue. The launcher doesn't use them for anything.

  8. #8
    Yeah, I know I could just have

    Code:
    @echo off
    del "Cache\WDB\enGB\creaturecache.wdb"
    but the thing is I'm a lazy person and I like to automate things, we'll see what happens when cetraben gets back from work
    thanks for all your help so far

    also: doesn't necessarily have to a .bat file!
    Last edited by otszx; 2014-01-13 at 01:54 PM. Reason: code tags

  9. #9
    You can add a bat to your startmenu startup folder containing the following

    Code:
    @echo off
    del "X:\PATHTOWOWFOLDER\Cache\WDB\enGB\creaturecache.wdb"
    you could also run this from the start menu any time you wanted it to be cleared. I think its a small price to pay if you want to use the battle.net launcher and save time by not entering login information!

    ----------
    EDIT:

    Seems I was late to the party! you could also make a new bat file that replaces WoW-64.exe with the Launcher exe file?

  10. #10
    How about making a 0-byte length creaturecache.wdb file and write-protecting it? (Mac user, don't know the Windows commands)

  11. #11
    Quote Originally Posted by toasttemp View Post
    How about making a 0-byte length creaturecache.wdb file and write-protecting it? (Mac user, don't know the Windows commands)
    I am not sure about Macs, but on Windows there is an even easier approach.
    Simply create in that same location, a folder with that same name.

    Due to what I assume is a limitation of the file systems used by Windows you cannot have a file and folder of the exact same name in the same location.
    Creating the folder will have a similar effect, just a bit easier imo, avoiding the need to worry about setting anything as read-only.
    Quote Originally Posted by DeadmanWalking View Post
    I don't understand why we don't have flying so they tell us we will have convenient flight points. Immersion and danger? Here take some coins and fly me there while I read facebook or go take a poop.
    Quote Originally Posted by Reinaerd View Post
    T'is good to see there are still people valiantly putting the "Ass" in assumption.

  12. #12
    Quote Originally Posted by toasttemp View Post
    How about making a 0-byte length creaturecache.wdb file and write-protecting it? (Mac user, don't know the Windows commands)
    I used to do that but as far as I can tell the bnet launcher seems to reverse the write-protection all the time.

  13. #13
    Field Marshal
    Join Date
    Jun 2012
    Location
    Colorado
    Posts
    53
    I've been using this with no problem

    del .\Cache\WDB\enUS\creaturecache.wdb
    start "" "C:\Program Files (x86)\Battle.net\Battle.net Launcher.exe"
    exit

    If the Battle.Net launcher is already running it will still delete the cache (if WoW isn't open too) and focus the already open launcher.

    Edit: sorry I missed the click play button, someone would have to write some application to do something like that is my guess.

  14. #14
    Quote Originally Posted by Otzsx View Post
    I have the Battle.net Launcher on startup, if I can add a bat to a startup I would do this.

    Lets say though I have a big session on timeless isle, 60% of rares are in cache, what I would do pre-b.net launcher is close wow, press bat, wow loads, cache is cleared.

    For it to work with b.net launcher, I would have to close WoW, then close bnet launcher, relaunch that with the bat, and run wow from the launcher.
    But if you want to clear the cache after you've already been playing for a bit you'd have to do this anyway.

    Wouldn't it be easier just to put your .bat in a convenient place like the top of the Start menu or something? Or keybind it in Windows? That way you can quit WoW, click the .bat and then click the start button from the launcher again without rebooting it. It's an extra click/button press but it's faster than rebooting the launcher.

    P.S. Are you sure you can't put a .bat file in Startup? Must be a way to get it to run on boot. Does Autoexec.bat still work?
    Quote Originally Posted by Tojara View Post
    Look Batman really isn't an accurate source by any means
    Quote Originally Posted by Hooked View Post
    It is a fact, not just something I made up.

  15. #15
    Quote Originally Posted by Mormolyce View Post
    P.S. Are you sure you can't put a .bat file in Startup? Must be a way to get it to run on boot. Does Autoexec.bat still work?
    You definitely can have a .bat run on startup.

    I personally would write an autohotkey script to delete the creaturecache and then click the Play button in the battle.net launcher.
    Might actually do that if I have the time.

    ---
    Turns out I had time: https://gist.github.com/anonymous/7e8610e24d466ec97e24

    The code should be somewhat self-explanatory:
    Deletes the creaturecache.wdb - change path depending on your installation
    Restores Battle.net Launcher Window, waits a bit then clicks the top Game button (in case you were playing hearthstone before)
    Waits a bit again, clicks the Play button and then minimizes the Launcher.

    You will need the Program Autohotkey for this.
    I should also mention that the Script assumes you already have the battle.net client running.
    Last edited by esevenf; 2014-01-14 at 06:17 AM.

  16. #16
    great, didn't think of autohotkey, thanks

  17. #17
    Quote Originally Posted by esevenf View Post
    You definitely can have a .bat run on startup.

    I personally would write an autohotkey script to delete the creaturecache and then click the Play button in the battle.net launcher.
    Might actually do that if I have the time.

    ---
    Turns out I had time: https://gist.github.com/anonymous/7e8610e24d466ec97e24

    The code should be somewhat self-explanatory:
    Deletes the creaturecache.wdb - change path depending on your installation
    Restores Battle.net Launcher Window, waits a bit then clicks the top Game button (in case you were playing hearthstone before)
    Waits a bit again, clicks the Play button and then minimizes the Launcher.

    You will need the Program Autohotkey for this.
    I should also mention that the Script assumes you already have the battle.net client running.
    Any chance of having it restore from the tray instead of the taskbar?

  18. #18
    The Patient
    Join Date
    Feb 2012
    Location
    England
    Posts
    273
    What i have for mine, is I have a .bat in my wow folder that has the following:

    Code:
    @del "Cache\WDB\enGB\npccache.wdb"
    @del "Cache\WDB\enGB\creaturecache.wdb"
    @del C:\"World of Warcraft"\WDB\enGB\creaturecache.wdb
    And i have a shortcut of that in my Startup folder, so it clears it when I boot up my PC.

    I remember that I used to have it linked to launching wow but that stopped working with the new launcher.
    Arneia/Panthea - Guild Master + Raid Leader - <Catalyst> 25man Horde - Tarren Mill - Currently Recruiting: Click for more info

  19. #19
    Quote Originally Posted by Otzsx View Post
    great, didn't think of autohotkey, thanks
    You're welcome

    Quote Originally Posted by tordenflesk View Post
    Any chance of having it restore from the tray instead of the taskbar?
    Might be possible but I'm still learning how to autohotkey. I will look into it.

  20. #20
    Quote Originally Posted by esevenf View Post
    You're welcome



    Might be possible but I'm still learning how to autohotkey. I will look into it.
    Might as well have AutoHotkey run WoW the old fashioned way(wow-64.exe), type the password(Hunter2) and hit enter. It would accomplish the same task without having to run the new launcher at all.

Posting Permissions

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