Originally posted by Eeyore:
Try this with caution:

echo off
cls
dir *.bak /s >filelist.txt
dir *.old /s >>filelist.txt
type filelist.txt |more
choice /c:yn /n Delete files (Y)es! or (N)o!
if errorlevel 2 goto finished
If errorlevel 1 goto doit

:doit
del *.dll /s
del *.old /s
goto finished

:finished
choice /c:yn /n Delete filelist.txt (Y)es! or (N)o!
if errorlevel 2 goto end
If errorlevel 1 goto killit

:killit
del filelist.txt
goto end

:end

You can change the path and files to what you want. You can keep the filelist it creates if you want.
Eyeore, lucky that Vernon pointed out your version wouldn't work.

The highlighted command would have been a bit devastating on any system.

Sure would have cleared out a few files.

------------------
File it under X for X-perience.