|
| | |||||||
| Windows XP Discuss the Microsoft Windows XP Operating System |
| | LinkBack | Thread Tools |
| |||
| 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. |
| |||
| 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 |
| Bookmarks |
| Thread Tools | |
| |
| | ||||
| 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? |