Question : Batch file in XP or 2003 to delete ALL files AND folders in a specified directory

I am looking for a SHORT batch file in XP or 2003 to delete ALL files AND folders in a specified directory.

Answer : Batch file in XP or 2003 to delete ALL files AND folders in a specified directory

I may have missed the point of the question, but if you just want a batch file to delete a directory subtree then this is that batch file:

rmdir /s /q "%~1"

Save it as (say) deletesubtree.cmd and invoke it as follows

deletesubtree "C:\my unwanted folder\data files"




Random Solutions  
 
programming4us programming4us