i forget the post that i retrieved this from, edit the details as appropriate ...
i will edit this later with the link to the original post.
edit:
http://www.thebuddyforum.com/honorbuddy-forum/110733-clearing-your-hb-wow-cache-dummies.html
My Notes:
==========================================
remove any lines that don't seem appropriate to your requirements, this updates a whole bunch of SVN's, just before i use the WoW launcher. it does not copy profile QB's into the folder automatically or anything like that. for those,
i prefer to keep the "SVN" url's linked directly to each plugin, if a profile has their own version of plugins.
use the Repo browser, find the particular Plugin or folder you want, copy the URL, create a new folder, use SVN checkout, paste the new URL onto the Plugin's folder, check the folder works. you may need to move the sub-folder created into the \Plugins Folder Directly. which will work as intended.
if you're curious to see updates and changes, remove the -q from the first or 2nd part, it will display the SVN revision numbers and a summary you can scroll through as it updates.
add more pauses to the script if you want to.
svn update -q doesn't output anything unless there's a problem
svn update --accept tf will overwrite your copy if there's a conflict between your version and the SVN copy (usually a good idea)
check if tortoiseSVN command line utilities are installed -- open up a command prompt (Start key +R, type in cmd, press enter) and type in 'svn' and press enter. it should say
Type 'svn help' for usage.
or it will say
'svn' is not recognised etc.if this comes up, check your install of TortoiseSVN has svn.exe in the TortoiseSVN\Bin\ folder.
you probably need to use a different WoW cache delete process, i've never really found it to be a problem, but it may not delete files at all. never needed to correct it.
cleaning HB slows down the login process to 2-3 minutes to compile, reloggers do not like cleaning the compiledassemblies folder.
==========================================
REM Leave the below alone unless you know what your doing
@echo off
set SVN_64="C:\Program Files\TortoiseSVN\bin\svn.exe"
set SVN_86="C:\Program Files (x86)\TortoiseSVN\bin\svn.exe"
set WoW_Dir=D:\World of Warcraft
set WoW_Local=enUS
set HB_Dir=D:\Honorbuddy
set error1=The SVN command line tool doesn't seem to be installed...
Echo WoW directory set to %WoW_Dir%
Echo WoW Local set to %WoW_Local%
Echo HonorBuddy directory set to %HB_Dir%
Echo .
Echo ..
Echo ...
Echo Deleting Cache
If exist "%WoW_Dir%\Errors" del /q "%WoW_Dir%\Errors\*.*" >nul
If exist "%WoW_Dir%\Cache\WDB\%WoW_Local%\creaturecache.wdb" del /q "%WoW_Dir%\Cache\WDB\%WoW_Local%\creaturecache.wdb"
If exist "%HB_Dir%\Cache" del /q "%HB_Dir%\Cache\*.*" >nul
If exist "%HB_Dir%\CompiledAssemblies" del /q "%HB_Dir%\CompiledAssemblies\*.*" >nul
Echo ...
Echo Updating SVN, Please wait... BW and DB first.
If exist %SVN_64% (svn update -q --accept tf "D:\HBrelog") else if exist %SVN_86% svn update -q "D:\HBrelog" else echo %error1%
echo
Echo .TOR Profiles.
If exist %SVN_64% (svn update -q "D:\BuddyWing\Profiles\*.*") else if exist %SVN_86% svn update -q "D:\BuddyWing\Profiles\*.*" else echo %error1%
Echo .DB Profiles.
If exist %SVN_64% (svn update -q "D:\Demonbuddy\Profiles\*.*") else if exist %SVN_86% svn update -q "D:\Demonbuddy\Profiles\*.*" else echo %error1%
echo
echo .WoW Mesh Updates. May take several minutes.
If exist %SVN_64% (svn update -q --accept tf "%HB_Dir%\HBMeshes") else if exist %SVN_86% svn update -q "%HB_Dir%\HBMeshes" else echo %error1%
echo
echo .PROFILES.
If exist %SVN_64% (svn update -q "%HB_Dir%\Profiles\*.*") else if exist %SVN_86% svn update -q "%HB_Dir%\Profiles\*.*" else echo %error1%
If exist %SVN_64% (svn update -q "%HB_Dir%\Profiles\Mists of Pandaria\*.*") else if exist %SVN_86% svn update -q "%HB_Dir%\Profiles\Mists of Pandaria\*.*" else echo %error1%
If exist %SVN_64% (svn update -q "%HB_Dir%\Profiles\PB\*.*") else if exist %SVN_86% svn update -q "%HB_Dir%\Profiles\PB\*.*" else echo %error1%
Echo .Combat Routines.
If exist %SVN_64% (svn update -q "%HB_Dir%\Routines\*.*") else if exist %SVN_86% svn update -q "%HB_Dir%\Routines\*.*" else echo %error1%
Echo .BOTS.
If exist %SVN_64% (svn update -q "%HB_Dir%\Bots\*.*") else if exist %SVN_86% svn update -q "%HB_Dir%\Bots\*.*" else echo %error1%
Echo .PLUGINS.
If exist %SVN_64% (svn update -q "%HB_Dir%\Plugins\*.*") else if exist %SVN_86% svn update -q "%HB_Dir%\Plugins\*.*" else echo %error1%
Echo Errors, Logs, Cache Cleared, and SVN updated...
pause
exit