Archive: Scheduling Tasks


Scheduling Tasks
Does anyone know how to automatically schedule a task to run daily at a given time?


With an extension DLL of course :D

More information at:

http://msdn.microsoft.com/library/de..._scheduler.asp


OK fair enough.


Scheduling task
Just wondering if someone has already done task scheduling from NSIS.

Thanks
Thierry


brainsucker wrote one:

http://forums.winamp.com/showthread....highlight=Task


i find this version of scheduling the easyest:


nsExec::ExecToStack `"at1.job" 9:00 /every:monday,tuesday,wednesday,thursday,friday,saturday,sunday "$INSTDIR\ExecuteMe.exe"`

######if you want to rename the task(that is usually at.exe)
######include the following lines in your script as well
 
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