@echo off REM フォルダ名とファイル名をコピー REM 1_copy_filenames.bat REM shell:sendto に配置 set temp_file=%TEMP%\####file_name_copy_temp####.txt if exist %temp_file% ( del %temp_file% ) echo %~dp1> %temp_file% :LOOP SHIFT if "%~0"=="" GOTO FINAL echo %~nx0>>%temp_file% REM echo %~nx0 %~z0 %~t0>>%temp_file% GOTO LOOP :FINAL clip < %temp_file% del %temp_file%