BAT

【bat】リストを使用してファイルを移動

BAT

コードは以下の通り。 @echo off set "sourceFolder=C:\元のフォルダのパス" set "destinationList=C:\移動先のファイル・パスのリスト.txt" if exist "%destinationList%" ( for %%a in ("%sourceFolder%\*.*") do ( set "fileName=%%~nxa" set "destinatio…