I have written a simple batch script [E:\Project Artemis\startup.bat
] to start Python SimpleHTTPServer at startup of Windows 7, with the script working when I manually execute it, but after adding it to Task Scheduler to launch at system startup, it does not do so (Task Scheduler shows the process ran and it's status as ready)
@ECHO OFF
pushd E:\Project Artemis\Wave
python -m http.server
- When I try to run it from Task Scheduler manually, the script does not work and History shows the task was completed with return code
1
, meaning something went wrong, but provides no details:
- Directory
Project Artemis
contains multiple files and I addedE:\Project Artemis\
to the task'sStart in(optional)
parameter
- Directory
How do I troubleshoot this and is there another way to start Python SimpleHTTPServer at startup?
E:
available at startup or is this a user disk? enable the task history and see what it says (if it was run, was an error encountered,...)System
shouldn't be used to execute an executable, as that then provides the executableSystem
level permissions, which only a handful of executables should ever have, most dealing with VSS and system updating/servicing. Just an FYI for future reference, please include the XML output of the task (export the task and open in a text editor, pasting the content into a code box), as that allows for more efficient [faster] troubleshooting.