Posts: 21
Joined: Jun 2011
Reputation:
0
I have that problem many members have that if you have XBMC running for a few days, videos begin to stutter. So I want to restart XBMC every night around 5am. I saw in one thread a bat script someone made that you would have scheduler execute every night to restart it. Unfortunately, that did not work. I got frustrated and just made a little C# application that kills the XBMC process and then restarts XBMC. When I run my executable manually, it works just fine. However, when the scheduler runs it, it exits XBMC, but it never starts up again. I have spent weeks trying to figure out a simple way just to restart XBMC every night and can't get a solution to work. Does anyone have any tips?
Posts: 1,190
Joined: Oct 2010
Reputation:
8
The batch script should be
Shutdown -f -r -t 0
Schedule that to run whenever. It will force close any application and reboot. The last 0 can bechanged to a whole Buber to tell the user that a shutdown will happen in xx seconds.
How to use Git
| AMD Athlon II X3 Triple Core Processor 2.9 GHz |GIGABYTE GA-MA785GM-US2H Mobo 2GB DDR2 Ram | MSI N430GT |
| Logitec Harmony Smart Control Remote| 52" Sharp Aquos LED TV | Denon AVR-X1000 |
| Freenas Server with 18TB ASRock Intel Avoton C2750 |
Posts: 21
Joined: Jun 2011
Reputation:
0
I want to restart XBMC, not my entire PC. Sorry if I wasn't clear.
Posts: 1,190
Joined: Oct 2010
Reputation:
8
Taskkill /im xbmc* /f
cd\
cd program files
xbmc.exe
How to use Git
| AMD Athlon II X3 Triple Core Processor 2.9 GHz |GIGABYTE GA-MA785GM-US2H Mobo 2GB DDR2 Ram | MSI N430GT |
| Logitec Harmony Smart Control Remote| 52" Sharp Aquos LED TV | Denon AVR-X1000 |
| Freenas Server with 18TB ASRock Intel Avoton C2750 |
Posts: 116
Joined: Jul 2011
Reputation:
1
Can you post your tasks log here so that we can see a bit more detail?
Posts: 1,328
Joined: Mar 2010
Reputation:
19
mwkurt
Posting Freak
Posts: 1,328
2011-10-28, 14:11
(This post was last modified: 2011-10-28, 14:13 by mwkurt.)
Hello,
You could use Eventghost to do this along with a couple of it's plugins: SchedulGhost & XBMC2.
Mark