Ever wondered how to delete files matching a certain patten from within all sub-directories in DOS (aka Windows).

Simple

At your command prompt type simply DEL /S *.ext
eg:
To delete all .bak files within D:Workspace

D:workspace>dels *.bak

But be careful.. there is no confirmation dialog.

Tagged with:
 

1 Response » to “Recursively Delete files within all sub directories in DOS”

  1. fivechimera says:

    Thanks so much for the help!

Leave a Reply