Jun
12
2008
1

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: , , ,

Powered by WordPress. Theme: TheBuckmaker