Need help with Kodi Python script executing Windows EXE/CMD
#1
Question 
I was trying to get the below addon to execute Windows exe's for Kodi Media Player Start/Stop; however, it looks like I need to know python before I can do do that.

[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)

I was hoping someone could please post an example python script that executes a Windows CMD, BAT, or EXE. I just want it to blindly execute an EXE, nothing more. Maybe, someone could show me a simple python script that executes the below EXE:

C:\Program Files (x86)\Yatse2\Yatse2.exe

Thanks in advance!
MKANET
Reply
#2
should be as easy as:
Code:
import os
os.system('C:\Program Files (x86)\Yatse2\Yatse2.exe')
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
I was able to execute the python script. However, this only results in a CMD window complaining it cant run 'C:\Program '
Reply

Logout Mark Read Team Forum Stats Members Help
Need help with Kodi Python script executing Windows EXE/CMD1