Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 01-10-2007, 09:01 AM
TBoon
Newsgroup Contributor
 
Posts: n/a
Monthly Scheduled Task

The following sample is taken from
http://www.microsoft.com/resources/d....mspx?mfr=true

schtasks /create /tn "My App" /tr c:\apps\myapp.exe /sc monthly /mo lastday
/m *

It create the taks to run on Day 31 of every month.

But if a month has only 30 days, the Task does not get executed.
Eg. Apr, Jun has 30 days. Not forgetting Feb 28 & 29.

One workaround it to create multiple schedule for one particular task. This
is tedious when there are lots of Schedule Task.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 01-10-2007, 09:01 AM
  #2 (permalink)  
Old 01-10-2007, 09:01 AM
Jon
Newsgroup Contributor
 
Posts: n/a
Re: Monthly Scheduled Task



I believe it was "TBoon" <TBoon@discussions.microsoft.com>, who said in
message news:CAE702F8-C9BF-4A8C-AFEB-31DFF9BCFC61@microsoft.com...
> The following sample is taken from
> http://www.microsoft.com/resources/d....mspx?mfr=true
>
> schtasks /create /tn "My App" /tr c:\apps\myapp.exe /sc monthly /mo
> lastday
> /m *
>
> It create the taks to run on Day 31 of every month.
>
> But if a month has only 30 days, the Task does not get executed.
> Eg. Apr, Jun has 30 days. Not forgetting Feb 28 & 29.
>
> One workaround it to create multiple schedule for one particular task.
> This
> is tedious when there are lots of Schedule Task.
>


Looks like a bit of a bug, but there are numerous ways you could get around
it eg....

(1) A script / batch file taking the name of a task as parameter and setting
up the multiple schedules
(2) Making the last action of the task a rescheduling of itself to the last
day of the next month
(3) Scheduling for the 1st day of the month, rather than the last day


--
Jon

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SCHEDULED TASK DD Windows XP 2 07-09-2008 01:30 AM
Scheduled Task Terry Pinnell Windows XP 1 04-30-2008 08:10 AM
Scheduled task every day Michele Windows XP 1 01-14-2008 06:30 AM
What happens if a scheduled task is scheduled to start, but theprevious task execution is still running? joe.carr@gmail.com Windows XP 1 12-17-2007 11:40 AM
How to Read Scheduled Task Last Result from Registry for a task Sakthi Windows XP 1 07-19-2007 10:50 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 02:22 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0