I'm writing a batch file that needs to delete all the files in a certain dir and all of it's subdirectories except those of a specific type.
How can I do this?
batch-filecmddoswindows
I'm writing a batch file that needs to delete all the files in a certain dir and all of it's subdirectories except those of a specific type.
How can I do this?
Best Answer
I wrote this batch file after a coworker asked for help with deleting all the files EXCEPT for those of certain types from a folder and all subfolders, while maintaining the directory structure. I would recommend backing up your folder before attempting this. Just open up notepad and paste the following, save it as a .bat instead of a .txt Good luck! ~Carolyn