Kodi Community Forum
v19 I need Kodi to run a bat file. How? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: v19 I need Kodi to run a bat file. How? (/showthread.php?tid=358865)



I need Kodi to run a bat file. How? - _novalis - 2020-12-02

Basically I'd just like to start a script from a menu point or favorite entry. I think there was an addon for that, Advanced Launcher, which doesn't exist anymore. Any other possibility to do this?


RE: I need Kodi to run a bat file. How? - jjd-uk - 2020-12-02

Use the built in function System.Exec(exec) where exec is the system path to the batch file e.g. System.Exec(C:\scripts\somescript.bat) if you do a search for System.Exec you should hopefully find some examples.