任意のファイルを探すコマンド
set KEYWORD="hoge" for /R %USERPROFILE%\Documents %%f in (*%KEYWORD%*.txt) do ( echo %%f )