コードは以下の通り。 @echo off set "sourceFolder=C:\元のフォルダのパス" set "destinationList=C:\移動先のファイル・パスのリスト.txt" if exist "%destinationList%" ( for %%a in ("%sourceFolder%\*.*") do ( set "fileName=%%~nxa" set "destinationPath=" rem 指定したファイル名に一致する行を検索し、パスを取得 for /f "usebackq tokens=1,* delims=," %%b in ("%destinati…