Hello,
I have this script:
I want to rename all pictures in the folder "pictures" and copy them to "temp". After renaming 7zip should zip the renamed files. But 7zip starts zipping before irfanview ended the renaming. So just a few pictures get zipped.
I also tried "start \wait" -> no difference.
I added "ping 127.0.0.1 -n 2 > nul" with various times -> a few more pictures get zipped but not all
How does the Batch wait until irfanview is ready with coping all pictures?
Julian
I have this script:
Code:
call %~dp0\IrfanViewPortable\IrfanViewPortable.exe %~dp0\pictures\*.jpg /convert="%~dp0\Output\temp\%INPUT% %HASH%.jpg" call %~dp0\7Zip\7z.exe a %~dp0\Output\%INPUT%.zip %~dp0\Output\temp\* @RD /S /Q "%~dp0\Output\temp"
I also tried "start \wait" -> no difference.
I added "ping 127.0.0.1 -n 2 > nul" with various times -> a few more pictures get zipped but not all
How does the Batch wait until irfanview is ready with coping all pictures?
Julian
Comment