#130331 - 2004-11-30 09:35 AM
Re: Trying to Schedule a One-Time Task
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11629
Loc: CA
|
By default the task can not access network resources so the task would fail.
There are UDFs for scheduling as well.
What clients do you need to support? NT/2000/XP/2003?
What version of KiXtart are you using?
Do your users have Admin rights on their own local systems?
TaskScheduleControl() - Library of UDFs to manage Windows Task Scheduler http://www.kixhelp.com/udfs/udf/83077.htm
Scheduled Task Control Library for JT.EXE http://www.kixhelp.com/udfs/udf/111470.htm
SCHEDULETASK() - Schedules a task on any computer using the Task Scheduler http://www.kixhelp.com/udfs/udf/81888.htm
XP/2003 have a built-in SHUTDOWN command Quote:
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:y y]
No args Display this message (same as -?) -i Display GUI interface, must be the first option -l Log off (cannot be used with -m option) -s Shutdown the computer -r Shutdown and restart the computer -a Abort a system shutdown -m \\computername Remote computer to shutdown/restart/abort -t xx Set timeout for shutdown to xx seconds -c "comment" Shutdown comment (maximum of 127 characters) -f Forces running applications to close without warning -d [u][p]:xx:yy The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536)
How To Troubleshoot Scheduled Tasks in Windows XP http://support.microsoft.com/?id=308558
How To Use the Remote Shutdown Tool to Shut Down and Restart a Computer in Windows 2000 http://support.microsoft.com/?id=317371
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1080 anonymous users online.
|
|
|