How to run a job every hour using dos at command?

G

Guest

I am still using at command even though it is obsolete. I did not find an
at command to run
a job every hour. I know how to run a job at certain time of day, everyday

at \\NCSUSRAPSGGS1 00:30 /EVERY:M,T,W,Th,F,S,Su cmd.exe /V /C
"e:\oracle\dev\bkup.bat"


To run this job every hour, I simply ended up creating 24 at jobs starting
at 00:00, 01;00, 02:00 .... There should be an easier way.

Prem
 
D

Dave Patrick

http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/soon-o.asp

Why not create the Scheduled Task then properties for the task
Schedule|Advanced check the box for "Repeat Task" every 1 hour with a
duration of 24 hours.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|
| I am still using at command even though it is obsolete. I did not find
an
| at command to run
| a job every hour. I know how to run a job at certain time of day, everyday
|
| at \\NCSUSRAPSGGS1 00:30 /EVERY:M,T,W,Th,F,S,Su cmd.exe /V /C
| "e:\oracle\dev\bkup.bat"
|
|
| To run this job every hour, I simply ended up creating 24 at jobs starting
| at 00:00, 01;00, 02:00 .... There should be an easier way.
|
| Prem
 
G

Guest

Dave Patrick said:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/soon-o.asp

Why not create the Scheduled Task then properties for the task
Schedule|Advanced check the box for "Repeat Task" every 1 hour with a
duration of 24 hours.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|
| I am still using at command even though it is obsolete. I did not find
an
| at command to run
| a job every hour. I know how to run a job at certain time of day, everyday
|
| at \\NCSUSRAPSGGS1 00:30 /EVERY:M,T,W,Th,F,S,Su cmd.exe /V /C
| "e:\oracle\dev\bkup.bat"
|
|
| To run this job every hour, I simply ended up creating 24 at jobs starting
| at 00:00, 01;00, 02:00 .... There should be an easier way.
|
| Prem
thanks.
Is there a way to run scheduled task in a scripted way. The user interface
is nice, but if I want to setup similar jobs on another computer, I have to
reenter all those key strokes. Also, I have not been succesful in
scheduling taks from the user interafce, gives me some error invalid
login/password even when I am usig default system login.
 
D

Dave Patrick

Scheduled Tasks|Advanced|View Log may provide some details. If the job
connects to another machine you may need to add the user/ group 'logon as
batch job' rights (server side). Control Panel|Admin Tools|Local Security
Policy\Local Policies\User Rights Assignments
"Log on as a batch job"

Remember that if it involves network resources to make sure the user account
has permissions to the resources and also use UNC paths as mapped drives
won't exist when no one is logged on.

This article may also help.

Result Codes in Scheduled Tasks Indicate an Error Occurred in the Task
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q267031

For Windows XP
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/schtasks.mspx


For Windows 2000
You can use the Task Scheduler Command Line Utility
ftp://ftp.microsoft.com/reskit/win2000/jt.zip


--
Regards,


Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| thanks.
| Is there a way to run scheduled task in a scripted way. The user
interface
| is nice, but if I want to setup similar jobs on another computer, I have
to
| reenter all those key strokes. Also, I have not been succesful in
| scheduling taks from the user interafce, gives me some error invalid
| login/password even when I am usig default system login.
 
J

Jerold Schulman

I am still using at command even though it is obsolete. I did not find an
at command to run
a job every hour. I know how to run a job at certain time of day, everyday

at \\NCSUSRAPSGGS1 00:30 /EVERY:M,T,W,Th,F,S,Su cmd.exe /V /C
"e:\oracle\dev\bkup.bat"


To run this job every hour, I simply ended up creating 24 at jobs starting
at 00:00, 01;00, 02:00 .... There should be an easier way.

Prem


See tip 5335 » Can I use the Windows XP command line scheduler in Windows 2000?
in the 'Tips & Tricks' at http://www.jsifaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top