Re: Windows "Scheduled Task Wizard..."



Do this:
- Click Start / Run / notepad.exe c:\Windows\MyTask.bat{Enter}
- Type these lines:
@echo off
echo The day of the month is %date:~7,2%
if %date:~7,2% LSS 25 goto :eof
c:\Tools\MonthLoad.exe
- Save and close the file.
- Test it.
- Invoke it with the Task Scheduler.

The code is dependent on the country you live in. The second
line (which is purely for debugging purposes) is supposed to
show you the day number. If it does not, vary the number "7"
until it does, both in lines 2 and in line 3.


"SmithSmith001" <SmithSmith001@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:890788AB-D43C-45D0-BEA6-9B2E200FCA27@xxxxxxxxxxxxxxxx
Thank you for the solution and suggestion.
How to write the batch commands.
Here is my pseudo code for MonthlyLoad.bat
------------------------------
get day of the month
if day of the month > 25
MonthLoad.exe
-------------------------------

Do not know how to write batch commands for the above.
Any advice is appreciated.
Should I use WSH. or will the vb script will do?
Thank you,
Smith





"SmithSmith001" wrote:

Windows 2000 Professional.

How to schedule a job which runs from 25th of the month to the end of the
month every day once at 7.30 am?
I am not finding the way to schedule one job to meet the above
requirement.
Alternatively, I am scheduling 7 jobs to run 25th to the end of the month
(31st).
Any suggestion?
Thank you,
Smith



.



Relevant Pages

  • Re: Task Scheduler 0x80 errors
    ... Much better to run the first few lines of the batch ... echo %date% %time% Start of batch job>> c:\test.txt ... The task completed with an exit code of. ... Task Scheduler return codes are generated by the command you schedule, ...
    (microsoft.public.win2000.general)
  • Re: Task Scheduler 0x80 errors
    ... Much better to run the first few lines of the batch ... echo %date% %time% Start of batch job>> c:\test.txt ... The task completed with an exit code of. ... Task Scheduler return codes are generated by the command you schedule, ...
    (microsoft.public.win2000.general)
  • Re: "at" scheduled job not working
    ... While debugging these kinds of problems I'd suggest not turning echo off. ... it can sometimes be simpler to turn the whole batch into a single ... Why do you use at.exe to schedule the job? ... at least the first line of the .bat file was run. ...
    (microsoft.public.windows.server.scripting)
  • Re: [PATCH 1/6] kill-the-BKL/reiserfs: release write lock on fs_changed()
    ... batched and you don't release the lock unnecessarily in the unloaded case. ... And I guess this pattern matches most of the cond_resched ... do something that might schedule ... echo schedule> set_ftrace_filter ...
    (Linux-Kernel)
  • Re: unable to run a scheduled task
    ... I suggest you post your question in a Spanish newsgroup. ... My guess is that the error message tells you that the account ... Schedule the following batch file, ... echo %date% %time% Start of task> c:\test.log ...
    (microsoft.public.windows.server.general)

Loading