Originally Posted by
DarkXale
The START command does not accept a direct link to a program like that. It only accepts programs in the current directory. (which by default is your User directory, or system32)
You either need to CD over to the directory where its contained, or define a path variable. E.g for:
"C:\Program Files (x86)\World of Warcraft\Wow.exe"
You type:
START /d "C:\Program Files (x86)\World of Warcraft\" wow.exe
The italics define the where, and bold defines the what.
Or you can just put the .bat in the WoW directory and write:
%SystemRoot%\SysWow64\cmd.exe /c WoW.exe
or
%SystemRoot%\System32\cmd.exe /c WoW.exe
The whole thing will look like this:
Code:
@echo off
"%SystemRoot%\System32\cmd.exe" /c
del \q "Cache\WDB\enUS\creaturecache.wdb"
"WoW.exe"
Or:
Code:
@echo off
"%SystemRoot%\SysWOW64\cmd.exe" /c
del \q "Cache\WDB\enUS\creaturecache.wdb"
"WoW.exe"
The main benefit of this is that it will work even if you move or rename the WoW folder, or if you copy it to another computer. Only the .bat file has to stay in the WoW directory.
The difference is that the cmd window will stay open during play and it will close itself on exit. It takes less than 1MB RAM so this won't be a problem. If you want the cmd to start minimized, you can make a shortcut to the bat file and change the settings in properties. You can even put a WoW.exe icon on the shortcut to the bat file.