Friday, August 18, 2006

Recursively delete files in Windows

To delete all files ending in .tmp in the current directory and all subdirectories, use:



del /s *.tmp

Warning: Be certain you know exactly what you are doing before using the command. To be more careful, you can specify that the del command will prompt for confirmation before deleting each file:



del /s /p *.tmp

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?