|You got me there. It works on my W2K box. Which is more like XP than anything I know of.|
If you put it in a script you need to double up the % signs.
@echo off & setLocal EnableDELAYedExpansion
for /f "tokens=* delims= " %%a in ('dir/b/ad ^| find "patch"') do (rd /s /q %%a)
Helping others achieve escape felicity