I told the task manager to start it after 5 minutes and kill it after 1 minute. To be more precise, I created a trigger tab saying 'begin task on a schedule', 'start one time', and 'repeat every 5 minutes'. You would want to repeat every 1 day for many days. It might also work if you scheduled it for daily without repeats. Under the 'settings' tab I checked 'stop the task' and entered '1 minute' in the box. You might want to give it more time. I also checked the box 'if the running task does not end... force it'. In the General tab, I checked 'only run when user is logged in', because I didn't feel like logging out to test it. As I said before, there might be a problem if you intend to run the task in the background.
The bat file contains:
Code:
set CALIBRE_CONFIG_DIRECTORY=...\calibre_development\config_test_device
set CALIBRE_DEVELOP_FROM=...\calibre_development\calibre\src
calibre-debug -g
The ... in the env variable sets are a fairly long path. As I said before, I set the env variables because I didn't want my production library touched. I don't think you need to set them, and in fact you can't set the DEVELOP_FROM variable if you don't have source code installed.