0

I have the syntax how to define a Task for the last day of the month, but not fir the first day. Are there any Admin Gurus?

schtasks /create /sc minute /mo LASTDAY /tn "Bild Copy" /tr "C:\copy.bat" 
1

The following command creates a scheduled task which runs the first day of every month. The default day is the first one, and the default month is every month, so you don't need to use additional parameters.

schtasks /create /tn "Bild Copy" /tr "C:\copy.bat" /sc monthly

Further reading

| improve this answer | |
  • Thanks and, is it possible as well to define the time? in this mode, say at 06.00 am? – user1767754 May 20 '14 at 18:50
  • @user1767754 Yes, you need to use the /st parameter, e.g. /st 06:00. Make sure to check the official documentation which explains every single parameter available. There are plenty of examples available, too. – and31415 May 20 '14 at 18:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.