CODE: [Copy to clipboard]for %a in ('dir *.txt /b^|find /v "123"') do echo %a>>a.txt
CODE: [Copy to clipboard]dir /s/b/a-d F:\*123*.txt>a.txt