
Originally Posted by
SvenBent
for /D %i in (*.jpg) do Lepton.exe <commands> %i
let it rip
- /D uses *.jpg as folder name, not file name, perhaps did you mean to write /R (recurse into subfolders)?
- %i works in command line, in batch file (as requested by Stephan) you must write %%i.
- I think that %i (and %%i) doesn't handles file names with space in the right way, e.g. for file names "test_file_1.jpg" and "test file 2.jpg":
Code:
%i -> Lepton.exe <commands> test_file_1.jpg <-- test_file_1.jpg is 1 parameter
"%~i" -> Lepton.exe <commands> "test_file_1.jpg" <-- "test_file_1.jpg" is 1 parameter
%i -> Lepton.exe <commands> test file 2.jpg <-- test file 2.jpg are 3 parameters
"%~i" -> Lepton.exe <commands> "test file 2.jpg" <-- "test file 2.jpg" is 1 parameter