Possible to automatically run a Windows batch file on XBMC Startup?
#1
I would like for my texturecache.py script to run each time my instance of XBM starts up. This script requires the XBMC Web Server to be up and running (so I guess the texture cache script may need to allow a certain amount of time for things to fire up before it tries to run?).

I created a batch file with a 30 second pause before then calling 'c:\texturecache.py c' but wonder if theres a way I can get this batch file to execute once the system knows that XBMC has been launched.

Any pointers would be appreciated.

Thanks
Reply
#2
I have a addon to run TCM via Kodis GUI. You could use autoexec.py (wiki) to run the addon when kodi starts. You need to edit default.py in the addon zip file and the ahk script to suit your system, as well as having autohotkey and curl installed:

https://dl.dropboxusercontent.com/u/2241...enance.zip
https://dl.dropboxusercontent.com/u/2241...leanup.ahk
Reply
#3
This sounds like just what I need, just one thing though, seeing as I still run XBMC Version 13.2 (Gotham), will this approach still work (and will I need to modify anything aside from paths mentioned in your attached files) to get it to work as I can see various Kodi references?

Thanks for your help!

(2015-08-10, 09:58)teeedubb Wrote: I have a addon to run TCM via Kodis GUI. You could use autoexec.py (wiki) to run the addon when kodi starts. You need to edit default.py in the addon zip file and the ahk script to suit your system, as well as having autohotkey and curl installed:

https://dl.dropboxusercontent.com/u/2241...enance.zip
https://dl.dropboxusercontent.com/u/2241...leanup.ahk
Reply
#4
Yeah I'm pretty sure it will work, but as you pointed out you'll need to change any references from kodi to xbmc.
Reply
#5
Perfect - Got it working. Exactly what I wanted, thanks a lot for your help.
Reply

Logout Mark Read Team Forum Stats Members Help
Possible to automatically run a Windows batch file on XBMC Startup?0