Scheduled Task Wizard

G

Guest

Anyone know how to schedule a task to run on the last day of every month by
using the Wizard?
Cheers
 
R

Ramesh, MS-MVP

Use the schtasks.exe command-line tool.

Schtasks:
http://technet2.microsoft.com/WindowsServer/en/Library/1d284efa-9d11-46c2-a8ef-87b297c68d171033.mspx

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

To schedule a task for the last day of every month
The following command schedules the MyApp program to run on the last day of
every month. It uses the /mo parameter to specify the last day and the /m
parameter with the wildcard character (*) to indicate that the program runs
every month.
schtasks /create /tn "My App" /tr c:\apps\myapp.exe /sc monthly /mo lastday
/m *

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Anyone know how to schedule a task to run on the last day of every month by
using the Wizard?
Cheers
 
R

Ramesh, MS-MVP

I think the scheduler might wait for 31st of every month, if so then the
LASTDAY modifier is logicless. Should that be the case, best option is to
create a script that checks if the current day is the last day of the month,
and if so, launches the specified application. This script can be scheduled
to run daily. Post back and we can create a script for this.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Use the schtasks.exe command-line tool.

Schtasks:
http://technet2.microsoft.com/WindowsServer/en/Library/1d284efa-9d11-46c2-a8ef-87b297c68d171033.mspx

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

To schedule a task for the last day of every month
The following command schedules the MyApp program to run on the last day of
every month. It uses the /mo parameter to specify the last day and the /m
parameter with the wildcard character (*) to indicate that the program runs
every month.
schtasks /create /tn "My App" /tr c:\apps\myapp.exe /sc monthly /mo lastday
/m *

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Anyone know how to schedule a task to run on the last day of every month by
using the Wizard?
Cheers
 

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