Page 1 of 1

Run Batch File

PostPosted: Thu Apr 20, 2017 12:31 am
by ajhunt
Hi Guys, I'm having trouble getting a batch file to run from within NeoBook with the Run command. The batch file works perfectly outside NeoBook but not when being executed from within. Any suggestons to what I need to do. Many thanks. Code is below:

FileWrite "[TempFolder]\MyBatch.bat" "All" "FOR %%f IN (Photo*.jpg) DO [PubDir]Tools\Convert.exe %%f [PubDir]Overlays\Logo.png -composite %%f"
Run "[TempFolder]\MyBatch.bat" "" "RunOnce+Wait+Hidden" "" ""

I have tried without the \ and also using ! infront of the command.

[TempFolder] = C:\Temp but this can be changed by user for their setup.

The batch file written is: FOR %%f IN (Photo*.jpg) DO C:\MultiCam\Tools\Convert.exe %%f C:\MultiCam\Overlays\Logo.png -composite %%f

Best regards

Re: Run Batch File

PostPosted: Thu Apr 20, 2017 12:38 am
by ajhunt
Solved - I was missing the full path for the photos ([TempFolder]Photo*.jpg

Thanks anyway guys as know you would have spotted that easy mistake.