Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
btpoole
Channel Surfer

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
0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: Execute Bat File from appMain.brs

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
0 Kudos
btpoole
Channel Surfer

Re: Execute Bat File from appMain.brs

Excellent. Thanks for the help.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.