2016-12-06, 07:12
I'm trying to run a simple batch script to launch Kodi after my machine wakes from sleep using Task Scheduler.
@echo off
timeout 15
start C:\"Program Files (x86)"\Kodi\Kodi.exe
Exit
The purpose is to launch Kodi so that my backup add-on can run and create a backup. I want to run this at 5 am so I'm using Task Scheduler to wake my machine and launch Kodi.
The script works without any issues if I manually run it. However, if I set Task Scheduler to run it at a specified time it fails and breaks Kodi. By break I mean, if I try to launch Kodi manually after Task Scheduler has attempt to launch it using this script, I receive the following error:
Unable to create application. Exiting
This error will continue until I restart the machine. Any ideas?
@echo off
timeout 15
start C:\"Program Files (x86)"\Kodi\Kodi.exe
Exit
The purpose is to launch Kodi so that my backup add-on can run and create a backup. I want to run this at 5 am so I'm using Task Scheduler to wake my machine and launch Kodi.
The script works without any issues if I manually run it. However, if I set Task Scheduler to run it at a specified time it fails and breaks Kodi. By break I mean, if I try to launch Kodi manually after Task Scheduler has attempt to launch it using this script, I receive the following error:
Unable to create application. Exiting
This error will continue until I restart the machine. Any ideas?