Forum Discussion

btpoole's avatar
btpoole
Channel Surfer
12 years ago

Execute Bat File from appMain.brs

Is it possible to execute a bat file from the appmain.brs. Have a simple channel on my roku that when selected it needs to start a stream from my server. The file is a m3u8. It is will be created once the channel is selected. Was wanting to put a call to a bat file that will check to see if the file exist, if not start a script that will result in the creation of the file and then the stream will start.
Thanks for an advice

2 Replies

  • The most straightforward way to do this would be to set up a cgi-bin script in your web server that would call the bat script. Your Roku channel would call the cgi-bin script via http.

    --Mark