PC Review


Reply
Thread Tools Rate Thread

AT to create HOURLY task?

 
 
Mandy
Guest
Posts: n/a
 
      22nd Feb 2005
Is it possible to create a task which will run on an hourly basis? I would hate to create 24 tasks.

In order to get close without using 24, I currently use:
AT 07:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
AT 08:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
AT 11:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
AT 12:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
AT 16:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
AT 16:45 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
AT 23:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"

I need to use a non-wizard means to create this task, as it's to be done via script.

It would also be helpful to have a simple (and scriptable) way to delete the task as needed, without knowing the task ID.

Thank you in advance.


 
Reply With Quote
 
 
 
 
jack tinker
Guest
Posts: n/a
 
      22nd Feb 2005
You could use schtasks /create (if you had windows server 2003)

Perhaps you could write a batch file to wait and run that instead - or
incorporate the Wait in your VBS


"Mandy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it possible to create a task which will run on an hourly basis? I
> would hate to create 24 tasks.
>
> In order to get close without using 24, I currently use:
> AT 07:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 08:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 11:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 12:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:45 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 23:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
>
> I need to use a non-wizard means to create this task, as it's to be done
> via script.
>
> It would also be helpful to have a simple (and scriptable) way to delete
> the task as needed, without knowing the task ID.
>
> Thank you in advance.
>
>



 
Reply With Quote
 
jack tinker
Guest
Posts: n/a
 
      22nd Feb 2005
You could also create the task in task scheduler wizard with your desired
schedule, then copy the .job file (c:\winnt\tasks\yourtask.job) into the
corresponding folder on your target PC.

"Mandy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it possible to create a task which will run on an hourly basis? I
> would hate to create 24 tasks.
>
> In order to get close without using 24, I currently use:
> AT 07:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 08:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 11:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 12:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:45 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 23:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
>
> I need to use a non-wizard means to create this task, as it's to be done
> via script.
>
> It would also be helpful to have a simple (and scriptable) way to delete
> the task as needed, without knowing the task ID.
>
> Thank you in advance.
>
>



 
Reply With Quote
 
-- Ken --
Guest
Posts: n/a
 
      22nd Feb 2005
Are you ina Win2k or WinXP environment? If it is a WinXP environment I
would suggest using the SCHTASKS utility rather than AT. It provides you
with exactly what you are asking for and can even be used to create
scheduled tasks on remote systems.

-Ken-


"Mandy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is it possible to create a task which will run on an hourly basis? I
> would hate to create 24 tasks.
>
> In order to get close without using 24, I currently use:
> AT 07:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 08:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 11:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 12:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:45 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 23:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
>
> I need to use a non-wizard means to create this task, as it's to be done
> via script.
>
> It would also be helpful to have a simple (and scriptable) way to delete
> the task as needed, without knowing the task ID.
>
> Thank you in advance.
>
>



 
Reply With Quote
 
Matthias Tacke
Guest
Posts: n/a
 
      22nd Feb 2005
Mandy wrote:
> Is it possible to create a task which will run on an hourly
> basis? I would hate to create 24 tasks.
>
> In order to get close without using 24, I currently use:
> AT 07:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 08:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 11:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 12:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 16:45 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
> AT 23:00 /every:M,T,W,Th,F,S,Su "doThis\rightHere.vbs"
>
> I need to use a non-wizard means to create this task, as it's
> to be done via script.


I like the free att.exe from Frank P. Westlkae for such purposes.
http://gearbox.maem.umr.edu/fwu/
Att.exe schedules itself to generate the next interval.

> It would also be helpful to have a simple (and scriptable) way to
> delete the task as needed, without knowing the task ID.
>

You will have to identify the job somehow. At (or ATT) without
arguments list current jobs, use find/findstr to filter by
name/program and parse this output with a for loop.

Provided you sched. your above script with
ATT +1m /r:h cscript /NOLOGO "doThis\rightHere.vbs"

You may delete the schedule at the command line with
for /f "tokens=5" %A in ('att^|find "doThis\rightHere.vbs"') do @att /d %A

or from a batch
@echo off
for /f "tokens=5" %%A in (
'att^|find "doThis\rightHere.vbs"'
) do @att /d %A

HTH

--
Gruesse Greetings Saludos Saluti Salutations
Matthias
---------+---------+---------+---------+---------+---------+---------+
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create hourly reminders for entire day? K Howell Microsoft Outlook Discussion 2 19th Feb 2009 08:08 AM
cannot find task that runs these jobs hourly rexmorton@msn.com Windows XP General 3 20th Sep 2005 10:46 AM
How do I create an hourly daily planner? =?Utf-8?B?emVk?= Microsoft Excel New Users 2 31st Mar 2005 05:15 PM
Scheduler for Hourly and Half-hourly tasks =?Utf-8?B?UnlhbiBDLg==?= Microsoft Windows 2000 File System 1 22nd Mar 2005 10:43 PM
hourly recurring task dberry Microsoft Outlook Discussion 0 10th Jul 2003 01:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:23 PM.