@echo off chcp 65001 rem skip したファイルの名前を表示するフラグ set f=1 set t=list.txt if not exist %t% copy nul %t% > nul for /f "delims="eol^= %%i in ('dir /a-d-s-h /b') do ( find "/%%i/" %t% > nul if errorlevel 1 ( echo hoge.exe "%%i" rem このバッチ中で処理する場合はここに入れる echo /%%i/>> %t% ) else if %f% neq 0 echo skip "%%i" ) pause chcp 932