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)
Batch file for wiping tf folder?
posted in
Q/A Help
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)
RD /S /Q folderPathCompletely removes a directory and all it's contents
Then you need to use
MD folderPathto 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
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
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
Please
sign in through STEAM
to post a comment.