BATCH - wait for executable to finish before starting next result

Posted by user3697573 on Stack Overflow See other posts from Stack Overflow or by user3697573
Published on 2014-06-01T21:05:32Z Indexed on 2014/06/01 21:27 UTC
Read the original article Hit count: 162

Filed under:
|

I'm pretty much a noob at this, so any help is appreciated.

I'm trying to run the video transcoding executable REDline on all .R3D files in a given folder. REDline only accepts single files, which is the issue. I finally got it to search recursively for the files I need, but my problem is the search function passes the next result to REDline before the first one is finished transcoding. I have the search results that need to run in a variable inside REDline.

Here's the code:

for /r D:\folder\ %%a in (*) do (
   "C:/Program Files/REDCINE-X PRO 64-bit/REDLine.exe" --exportPreset "Prores_Intermediate" --i "%%~dpnxa" --useRSX 2 --masterRMDFolder "" -s 0 -e 95

)

After about .7 seconds, REDline reports 'received stop message from client'.

I don't think this is a REDline error, as I have been able to transcode single files successfully.

Thanks.

© Stack Overflow or respective owner

Related posts about batch-file

Related posts about executable