Run template at server startup

Was not sure how to search for this so I ask instead
I have the need of running a template/command automatically when the server is started without any human effort
So I run this startup-script

@Echo off

IF EXIST scanner.exe (
    IF EXIST leveldown.node (
        start scanner.exe


casparcg.exe 2NDI_D_ASSETS.config

if ERRORLEVEL 5 goto :Start

And I need the server to run this command after it has started

PLAY 1-20 [HTML] “

Is it doable?

br markus

Puting this file in casparcg server folder and running it works.

This is vb script file dd.vbs containing:-

set WshShell = WScript.CreateObject("WScript.Shell")"casparcg.exe casparcg.config"
 WScript.Sleep 1500"telnet.exe 5250"
 WScript.Sleep 1500
 WshShell.SendKeys"play 1-1 amb loop"

Thanks it worked
Had some problem with the url but I did get it to work
my wbs file looks like this

set WshShell = WScript.CreateObject(“WScript.Shell”)"casparcg.exe 2NDI_D_ASSETS.config"
WScript.Sleep 1500"telnet.exe 5250"
WScript.Sleep 1500
WshShell.SendKeys “play 1-20 [HTML]

1 Like

You could use CasparLauncher GitHub - rrebuffo/CasparLauncher: Frontend app for CasparCG Server

It allows startup commands

Privacy Policy   Terms of Service