Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. @echo off
  2. mode con:cols=100 lines=75
  3.  
  4. set PATH=%PATH%;c:\users\shane\bin
  5. set DNGC="C:\Program Files (x86)\Adobe\Adobe DNG Converter.exe"
  6. set OPTS=-c -fl
  7. set DNGFOLDER=C:\Users\shane\Pictures\dng
  8.  
  9. echo Current Directory is %cd%
  10. echo Current batch run is %0 %~dpnx0
  11. echo Subject is %1 %~dpnx1
  12. echo Folder name is %~n1
  13.  
  14.  
  15. if not exist "%DNGFOLDER%\%~n1" mkdir "%DNGFOLDER%\%~n1"
  16.  
  17. for /r %1 %%a in (*.CR2) do (
  18. echo Converting: "%%a"
  19. %DNGC% %OPTS% "%%~a"
  20. move "%%~dpna.dng" "%DNGFOLDER%\%~n1"
  21. )
  22.  
  23. echo Conversion Complete
  24. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement