05-09-2012 How to write a simple bat file (DOS command batch file) to find if a directory exists and delete it with all items in it (all files and sub folders). Simple DOS command explanation: IF EXIST will check the existence of the path you provide and execute the command you provide after that (toContinue reading “How To Write A DOS Bat (Batch) File To Check And Delete A Folder With Contents And Then Self-Destruct?”