Jun
12
2008

Recursively Delete files within all sub directories in DOS

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.

Written by Kishore in: dos, tech | Tags: , , ,

1 Comment »

  • fivechimera

    Thanks so much for the help!

    Comment | September 1, 2009

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress. Theme: TheBuckmaker