Listing 1: DeleteHotfixBackups.bat C: CD %WINDIR% Del kb*.log For /F "usebackq delims=" %%W in (`dir/d/b/ah $*.*`) Do RD %%W /S /Q