Blegging for an Old-School DOS command
01 Sep
All right, time to break out the old-school DOS knowledge from way back. Anyone know how to make this command:
for /d %%a in ("%ALLUSERSPROFILE%Application Data{*") do rd /s /q "%%a"
find (and then, of course, delete) hidden directories?


How about:
for /F "usebackq" %%i IN (`dir /b /a:hd "%ALLUSERSPROFILE%\Application Data\{*"`) DO @rd /s /q "%ALLUSERSPROFILE%\Application Data\%%i"
September 1st, 2007 at 10:38 amYes! That worked! Thanks, Sebasitan!
Nick
September 1st, 2007 at 10:43 amOr even easier - if you run 4NT as command processor - :
for /a:d /h %x in (<mask>) do <command>
September 1st, 2007 at 11:37 am