schtasks
On Start#
Important
- Use
dir /xto get the short names for directories. - Having no spaces in the file path makes ensures the scheduled tasks will find the file.
Make the Task#
schtasks /create /tn "<TaskName>" /tr "<FullFilePath>" /sc onstart /ru system
Check the Task#
schtasks /query /tn "<TaskName>"