CODE: [Copy to clipboard]@echo off for /f "delims=" %%i in ('dir/a-d/b') do ( echo %%i|findstr "常用" &© %%i z:\常用 echo %%i|findstr "食品" &© %%i z:\食品 )