I've got a problem with the following script under Windows 7
Code: Select all
@echo on
FOR /F %%I IN ('DIR *.jpg /b') DO (convert.exe %%I -resize 800x600 -auto-orient -density 72 -quality 75 c_%%I
composite -watermark 15%% -gravity center c:\imagebatch\pic.png c_%%I c_%%I)
-> the Reg ey C:\imagebatch\test.cmd
If you choose a folder with pictures and doing a right click on it, choose piccommand it always display the message file not found
after this I tried to add after the C:\imagebatch\test.cmd %1 and tried to run the script like this
Code: Select all
@echo on
FOR /%%I IN (%1\*.jpg) DO (convert.exe %%I -resize 800x600 -auto-orient -density 72 -quality 75 c_%%I
composite -watermark 15%% -gravity center c:\imagebatch\pic.png c_%%I c_%%I)
If I copy the original Script in the picture folder it works.
Has anyone of you a hint how to solve this Problem.
Greetings
Marc