Batchscript for converting RAW-Files directly from SD to HDD Subfolders

Started by lx2, August 24, 2015, 12:36:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lx2

Dear ML Forum,
this is my first post, and I want to thank you for all of the good work in developing ML.

In my workflow I was searching for an opertunity to extract all RAW-Videos with raw2dng.exe directly from the SD-Card to multiple subfolders on the HDD. So I wrote an easy batch script for PC that can be put together in the same Folder of  raw2dng.exe and get the job done. Just adjust it to your needs...

DumpRawFilesToHdd.bat


set PATH_TO_RAW_ON_SDCARD=F:/DCIM/100CANON/

set currentFolder=%~dp0
cd /d %PATH_TO_RAW_ON_SDCARD%

set /a counter=1
for /r %%i in (*.RAW) do (
  mkdir %currentFolder%%%~nxi
  cd /d %currentFolder%%%~nxi
  "..\raw2dng.exe" "%PATH_TO_RAW_ON_SDCARD%%%~nxi"
  cd /d %currentFolder%
)