4

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 2

11

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.

0
9

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.

4
  • 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.
    – KOVIKO
    Jul 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.
    – Dennis
    Jul 28, 2012 at 23:07
  • 2
    Sorry. You did get my upvote though, so it wasn't in vain! :D
    – KOVIKO
    Jul 28, 2012 at 23:46
  • No worries. A batch file is the proper way to do this. I just didn't want to leave that part unanswered.
    – Dennis
    Jul 29, 2012 at 6:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .