@echo offfor /f "delims=" %%a in('dir /ad /b /s "C:\Program Files\"') do (echo %%~nxa|findstr "^[0-9][0-9]*$">nul && echo rd /q /s "%%a")
删除C:\Program Files\中文件夹有风险,请确认无误后删除echo rd /q /s "%%a" 前的echo真正删除文件夹