@title LR2playlist.bat (LR2 beta3 090916-) @echo off && setlocal EnableDelayedExpansion :: 2010/09/09 ファイル+フォルダの複数同時ドロップ, 譜面数カウンタ :: ******************** config ******************** set LR2="C:\hoge\LR2beta3" set BMC="C:\Documents and Settings\UserName\SendTo" :: ************************************************ set DAT=%date:/=-% set DAN=%time:~0,8% set /a CNT=0 cd /d %LR2% echo: call %BMC%\BMxCount.bat %* echo: :mainloop set FLD=%~1\ if .%1==. goto result if not exist "%FLD%" ( if /i "%~x1" == ".bms" goto single if /i "%~x1" == ".bme" goto single if /i "%~x1" == ".bml" goto single if /i "%~x1" == ".pms" goto single ) for /r %1 %%A in (*.bms *.bme *.bml *.pms) do ( set /a CNT=!CNT!+1 echo PLAY no.!CNT! : %%~A LR2body.exe -NS "%%A" echo: ) shift goto mainloop :result if !CNT! == 0 ( echo BMx ^(.bms .bme .bml .pms^) File^(s^) were Not Found. echo Drop the BMx File^(s^), or Folder^(s^), or Both, to this Batch File. echo e.g. "FIVE VS SEVEN" folder ^& "BOF2010" folder are selected ^& "SendTo" echo: endlocal pause exit ) echo BMx : !CNT! echo RUN : %DAT% %DAN% echo END : %date:/=-% %time:~0,8% endlocal echo: pause exit :single set /a CNT=!CNT!+1 echo PLAY no.!CNT! : %1 LR2body.exe -NS "%~1" echo: shift goto mainloop