Scheduling Tasks
Does anyone know how to automatically schedule a task to run daily at a given time?
6 posts
######if you want to rename the task(that is usually at.exe)
nsExec::ExecToStack `"at1.job" 9:00 /every:monday,tuesday,wednesday,thursday,friday,saturday,sunday "$INSTDIR\ExecuteMe.exe"`
Sleep 1000
exch
Pop $0
strcpy $1 $0 10 30
Push $1
Call TrimNewlines ;To cut the new line from the end of task name(don't forget to include function TrimNewlines
Pop $1
strcpy $2 "New name for the task"
Rename /REBOOTOK $WINDIR\Tasks\At$1.job $WINDIR\Tasks\$2.job