Source language: Translate to:

Run Batch File

General questions about NeoBook

Moderator: Neosoft Support

Run Batch File

Postby ajhunt » Thu Apr 20, 2017 12:31 am

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
Anthony
ajhunt
 
Posts: 224
Joined: Sat Apr 23, 2005 2:33 pm
Location: United Kingdom

Re: Run Batch File

Postby ajhunt » Thu Apr 20, 2017 12:38 am

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.
ajhunt
 
Posts: 224
Joined: Sat Apr 23, 2005 2:33 pm
Location: United Kingdom


Return to General NeoBook Discussions

Who is online

Users browsing this forum: No registered users and 3 guests