Upvote Upvoted 1 Downvote Downvoted
Batch file for wiping tf folder?
posted in Q/A Help
1
#1
0 Frags +

I believe it was after SoCal or Sacramento LANs last year, there was mention that there is a batch file around somewhere that will wipe cfg and custom folders in the tf directory. Does anyone know where to find this, or the commands to put into a batch file? (I'm bad at coding)

I believe it was after SoCal or Sacramento LANs last year, there was mention that there is a batch file around somewhere that will wipe cfg and custom folders in the tf directory. Does anyone know where to find this, or the commands to put into a batch file? (I'm bad at coding)
2
#2
7 Frags +
RD /S /Q folderPath

Completely removes a directory and all it's contents

Then you need to use

MD folderPath

to remake the folder. None of this is tested but it should be something along the lines of

RD /S /Q "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\cfg"
MD "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\cfg"
RD /S /Q "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\custom"
MD "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\custom"

Obviously directories need to be adjusted

Source

Edit: You could also do a variable called system path and take it on the command line

[code]RD /S /Q folderPath[/code]

Completely removes a directory and all it's contents

Then you need to use

[code]MD folderPath[/code]

to remake the folder. None of this is tested but it should be something along the lines of

[code]RD /S /Q "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\cfg"
MD "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\cfg"
RD /S /Q "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\custom"
MD "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\custom"
[/code]

Obviously directories need to be adjusted

[url=http://stackoverflow.com/questions/1965787/how-to-delete-files-subfolders-in-a-specific-directory-at-command-prompt-in-wind]Source[/url]

Edit: You could also do a variable called system path and take it on the command line
3
#3
-1 Frags +

.

.
Please sign in through STEAM to post a comment.