AT Command shedule

Pedro

Distinguished
Feb 27, 2004
63
0
18,630
Archived from groups: microsoft.public.win2000.advanced_server (More info?)

Hello Everyone !

Windows Server 2000 SP4

Please can anyone help me with the exact command
line I should use to schedule a task. For example, I
want to launch a prog.exe at 10am on 31 July 2004. What
is the exact AT command line I should use for this task ?

I have seen all online help and 2KB articles:

http://support.microsoft.com/?id=220149
http://support.microsoft.com/?id=313565

I failed to find the AT command line necessary for the
task I want to schedule. If for example I schedule the
task today by using:

AT 10:00 31/07/2004 "prog.exe"

The program would be launched the next day at 10.00. I
want the program to be launched as scheduled, i.e. on
31/07/2004 at 10.00.

Does anyone know the exact AT command line for my precise
task? or

Is it not possible to use AT for my task ? If so, is
there any other tool or third party software for it ?

Thanks a lot.

Pedro
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.advanced_server (More info?)

On Mon, 31 May 2004 03:36:13 -0700, "Pedro"
<anonymous@discussions.microsoft.com> wrote:

>Hello Everyone !
>
>Windows Server 2000 SP4
>
>Please can anyone help me with the exact command
>line I should use to schedule a task. For example, I
>want to launch a prog.exe at 10am on 31 July 2004. What
>is the exact AT command line I should use for this task ?
>
>I have seen all online help and 2KB articles:
>
>http://support.microsoft.com/?id=220149
>http://support.microsoft.com/?id=313565
>
>I failed to find the AT command line necessary for the
>task I want to schedule. If for example I schedule the
>task today by using:
>
>AT 10:00 31/07/2004 "prog.exe"
>
>The program would be launched the next day at 10.00. I
>want the program to be launched as scheduled, i.e. on
>31/07/2004 at 10.00.
>
>Does anyone know the exact AT command line for my precise
>task? or
>
>Is it not possible to use AT for my task ? If so, is
>there any other tool or third party software for it ?
>
>Thanks a lot.
>
>Pedro

The only possibilities with the AT command are:

AtSchedules commands and programs to run on a computer at a specified time and
date. You can use at only when the Schedule service is running. Used without
parameters, at lists scheduled commands.

Syntax
at [\\ComputerName] [{[ID] [/delete] | /delete [/yes]}]

at [[\\ComputerName] Hours:Minutes [/interactive] [{/every:Date[,...] |
/next:Date[,...]}] Command]

Parameters
\\ComputerName
Specifies a remote computer. If you omit this parameter, at schedules the
commands and programs on the local computer.
ID
Specifies the identification number assigned to a scheduled command.
/delete
Cancels a scheduled command. If you omit ID, all of the scheduled commands on
the computer are canceled.
/yes
Answers yes to all queries from the system when you delete scheduled events.
Hours:Minutes
Specifies the time when you want to run the command. Time is expressed as
Hours:Minutes in 24-hour notation (that is, 00:00 [midnight] through 23:59).
/interactive
Allows Command to interact with the desktop of the user who is logged on at the
time Command runs.
/every:
Runs Command on every specified day or days of the week or month (for example,
every Thursday, or the third day of every month).
Date
Specifies the date when you want to run the command. You can specify one or more
days of the week (that is, type M,T,W,Th,F,S,Su) or one or more days of the
month (that is, type 1 through 31). Separate multiple date entries with commas.
If you omit Date, at uses the current day of the month.
/next:
Runs Command on the next occurrence of the day (for example, next Thursday).
Command
Specifies the Windows command, program (that is, .exe or .com file), or batch
program (that is, .bat or .cmd file) that you want to run. When the command
requires a path as an argument, use the absolute path (that is, the entire path
beginning with the drive letter). If the command is on a remote computer,
specify Universal Naming Convention (UNC) notation for the server and share
name, rather than a remote drive letter.


For Windows 2000, you can use JT, tip 2621 in the 'Tips & Tricks' at
http://www.jsiinc.com

From a Windows XP workstation, you can use Schtasks. See tip 5335.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 

Pedro

Distinguished
Feb 27, 2004
63
0
18,630
Archived from groups: microsoft.public.win2000.advanced_server (More info?)

Thank you Jerold,

Hmmm... It seems that my first message was unclear.
Yet, I re-read it and seemed clear to me. I am aware of
of this litterature. I tried everything I could but it
didn't work. In my posting I supplied an example of what
I want to do. All that I need, taking my example into
account, is the full AT command line that I should use if
you know it. That's all.

Thanks anyway.

Pedro

>-----Original Message-----
>On Mon, 31 May 2004 03:36:13 -0700, "Pedro"
><anonymous@discussions.microsoft.com> wrote:
>
>>Hello Everyone !
>>
>>Windows Server 2000 SP4
>>
>>Please can anyone help me with the exact command
>>line I should use to schedule a task. For example, I
>>want to launch a prog.exe at 10am on 31 July 2004.
What
>>is the exact AT command line I should use for this
task ?
>>
>>I have seen all online help and 2KB articles:
>>
>>http://support.microsoft.com/?id=220149
>>http://support.microsoft.com/?id=313565
>>
>>I failed to find the AT command line necessary for the
>>task I want to schedule. If for example I schedule the
>>task today by using:
>>
>>AT 10:00 31/07/2004 "prog.exe"
>>
>>The program would be launched the next day at 10.00. I
>>want the program to be launched as scheduled, i.e. on
>>31/07/2004 at 10.00.
>>
>>Does anyone know the exact AT command line for my
precise
>>task? or
>>
>>Is it not possible to use AT for my task ? If so, is
>>there any other tool or third party software for it ?
>>
>>Thanks a lot.
>>
>>Pedro
>
>The only possibilities with the AT command are:
>
>AtSchedules commands and programs to run on a computer
at a specified time and
>date. You can use at only when the Schedule service is
running. Used without
>parameters, at lists scheduled commands.
>
>Syntax
>at [\\ComputerName] [{[ID] [/delete] | /delete [/yes]}]
>
>at [[\\ComputerName] Hours:Minutes [/interactive]
[{/every:Date[,...] |
>/next:Date[,...]}] Command]
>
>Parameters
>\\ComputerName
>Specifies a remote computer. If you omit this parameter,
at schedules the
>commands and programs on the local computer.
>ID
>Specifies the identification number assigned to a
scheduled command.
>/delete
>Cancels a scheduled command. If you omit ID, all of the
scheduled commands on
>the computer are canceled.
>/yes
>Answers yes to all queries from the system when you
delete scheduled events.
>Hours:Minutes
>Specifies the time when you want to run the command.
Time is expressed as
>Hours:Minutes in 24-hour notation (that is, 00:00
[midnight] through 23:59).
>/interactive
>Allows Command to interact with the desktop of the user
who is logged on at the
>time Command runs.
>/every:
>Runs Command on every specified day or days of the week
or month (for example,
>every Thursday, or the third day of every month).
>Date
>Specifies the date when you want to run the command. You
can specify one or more
>days of the week (that is, type M,T,W,Th,F,S,Su) or one
or more days of the
>month (that is, type 1 through 31). Separate multiple
date entries with commas.
>If you omit Date, at uses the current day of the month.
>/next:
>Runs Command on the next occurrence of the day (for
example, next Thursday).
>Command
>Specifies the Windows command, program (that is, .exe
or .com file), or batch
>program (that is, .bat or .cmd file) that you want to
run. When the command
>requires a path as an argument, use the absolute path
(that is, the entire path
>beginning with the drive letter). If the command is on a
remote computer,
>specify Universal Naming Convention (UNC) notation for
the server and share
>name, rather than a remote drive letter.
>
>
>For Windows 2000, you can use JT, tip 2621 in the 'Tips
& Tricks' at
>http://www.jsiinc.com
>
>From a Windows XP workstation, you can use Schtasks. See
tip 5335.
>
>
>Jerold Schulman
>Windows: General MVP
>JSI, Inc.
>http://www.jsiinc.com
>.
>
 
G

Guest

Guest
Archived from groups: microsoft.public.win2000.advanced_server (More info?)

The AT command cannot do what you want.


On Mon, 31 May 2004 06:38:23 -0700, "Pedro"
<anonymous@discussions.microsoft.com> wrote:

>Thank you Jerold,
>
>Hmmm... It seems that my first message was unclear.
>Yet, I re-read it and seemed clear to me. I am aware of
>of this litterature. I tried everything I could but it
>didn't work. In my posting I supplied an example of what
>I want to do. All that I need, taking my example into
>account, is the full AT command line that I should use if
>you know it. That's all.
>
>Thanks anyway.
>
>Pedro
>
>>-----Original Message-----
>>On Mon, 31 May 2004 03:36:13 -0700, "Pedro"
>><anonymous@discussions.microsoft.com> wrote:
>>
>>>Hello Everyone !
>>>
>>>Windows Server 2000 SP4
>>>
>>>Please can anyone help me with the exact command
>>>line I should use to schedule a task. For example, I
>>>want to launch a prog.exe at 10am on 31 July 2004.
>What
>>>is the exact AT command line I should use for this
>task ?
>>>
>>>I have seen all online help and 2KB articles:
>>>
>>>http://support.microsoft.com/?id=220149
>>>http://support.microsoft.com/?id=313565
>>>
>>>I failed to find the AT command line necessary for the
>>>task I want to schedule. If for example I schedule the
>>>task today by using:
>>>
>>>AT 10:00 31/07/2004 "prog.exe"
>>>
>>>The program would be launched the next day at 10.00. I
>>>want the program to be launched as scheduled, i.e. on
>>>31/07/2004 at 10.00.
>>>
>>>Does anyone know the exact AT command line for my
>precise
>>>task? or
>>>
>>>Is it not possible to use AT for my task ? If so, is
>>>there any other tool or third party software for it ?
>>>
>>>Thanks a lot.
>>>
>>>Pedro
>>
>>The only possibilities with the AT command are:
>>
>>AtSchedules commands and programs to run on a computer
>at a specified time and
>>date. You can use at only when the Schedule service is
>running. Used without
>>parameters, at lists scheduled commands.
>>
>>Syntax
>>at [\\ComputerName] [{[ID] [/delete] | /delete [/yes]}]
>>
>>at [[\\ComputerName] Hours:Minutes [/interactive]
>[{/every:Date[,...] |
>>/next:Date[,...]}] Command]
>>
>>Parameters
>>\\ComputerName
>>Specifies a remote computer. If you omit this parameter,
>at schedules the
>>commands and programs on the local computer.
>>ID
>>Specifies the identification number assigned to a
>scheduled command.
>>/delete
>>Cancels a scheduled command. If you omit ID, all of the
>scheduled commands on
>>the computer are canceled.
>>/yes
>>Answers yes to all queries from the system when you
>delete scheduled events.
>>Hours:Minutes
>>Specifies the time when you want to run the command.
>Time is expressed as
>>Hours:Minutes in 24-hour notation (that is, 00:00
>[midnight] through 23:59).
>>/interactive
>>Allows Command to interact with the desktop of the user
>who is logged on at the
>>time Command runs.
>>/every:
>>Runs Command on every specified day or days of the week
>or month (for example,
>>every Thursday, or the third day of every month).
>>Date
>>Specifies the date when you want to run the command. You
>can specify one or more
>>days of the week (that is, type M,T,W,Th,F,S,Su) or one
>or more days of the
>>month (that is, type 1 through 31). Separate multiple
>date entries with commas.
>>If you omit Date, at uses the current day of the month.
>>/next:
>>Runs Command on the next occurrence of the day (for
>example, next Thursday).
>>Command
>>Specifies the Windows command, program (that is, .exe
>or .com file), or batch
>>program (that is, .bat or .cmd file) that you want to
>run. When the command
>>requires a path as an argument, use the absolute path
>(that is, the entire path
>>beginning with the drive letter). If the command is on a
>remote computer,
>>specify Universal Naming Convention (UNC) notation for
>the server and share
>>name, rather than a remote drive letter.
>>
>>
>>For Windows 2000, you can use JT, tip 2621 in the 'Tips
>& Tricks' at
>>http://www.jsiinc.com
>>
>>From a Windows XP workstation, you can use Schtasks. See
>tip 5335.
>>
>>
>>Jerold Schulman
>>Windows: General MVP
>>JSI, Inc.
>>http://www.jsiinc.com
>>.
>>


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com