I would like to automatically delete a specific file (a cache file) whenever I open the game World of Warcraft. How would I accomplish this? Is this something that be done with a shortcut? Do I have to write a *.bat file?
2 Answers
You may create shortcut, for batch file (.bat or .cmd does not matter)
for Example (RunGame.cmd)
del "FullPathToYourCacheFile"
start "" "FullPathToGameExecutable"
You may add specific game args after "FullPathToGameExecutable"
if the game needs them.
Yes, this can be done. Even without a batch file.
Create a shortcut and supply the following command as location:
cmd /c del "PathToCacheFile" & start "" "PathToGameExecutable"
To avoid seeing a command prompt popping up, right-click the shortcut, select Properties
change Run: Normal window
to Run: Minimized
.
-
While I like the idea of not making a batch file when I don't need to, I am currently using Steam to launch my game so I can't avoid the command prompt with shortcut properties.– KOVIKOJul 28, 2012 at 20:55
-
I bet you could achieve that too, but it's probably not worth the effort. I wouldn't have posted a second answer, if you didn't specifically ask if it was possible without a batch file.– DennisJul 28, 2012 at 23:07
-
2
-
No worries. A batch file is the proper way to do this. I just didn't want to leave that part unanswered.– DennisJul 29, 2012 at 6:01