Copy link
Scheduled task with more than one schedule

You can perform a task several times a day by adding it to Windows Task Scheduler. You can use this, for example, to send and receive messages via the communication service. After sending the files, you can access feedback from the files received by the Tax authority to arrive a moment later. This is because, after sending files, the status for receipt by the Tax authority is then changed.

You could, for example, create the .bat file with one schedule that runs three times a day on working days between 07:00 and 19:00. You could then create a second Schedule that also runs three times between 07:30 and 19:30. As a result, the Task is run 2x three times a day with 30-minute intervals. The start time set for the start of the second Schedule is related to the number of declarations being sent. If the number of declarations is high, you must leave more time between the two schedules, as the system will not have finished sending otherwise.


To be able to perform the send/receive function correctly, the user must have full-control rights to the entire AfasEdi folder, including all the underlying sub-folders/files.

You can create two schedules for the exchange batch file task on the server as follows:

  1. Go to: 'Start / All Programs / Accessories / System Tools / Scheduled Tasks'.
  2. Select the task for sending and receiving the declaration.
  3. Go to the tab: 'Schedule'.
  4. Select 'Weekly' for 'Schedule tasks'.
  5. Enter 7:00 as the start time.
  6. Select Mon to Fri.

  7. Click on: 'Advanced'.
  8. Select the 'Repeat task' check box.
  9. Select 6 and hours for 'Every'.
  10. Select the 'Until Time' check box.
  11. Enter 19:00.
  12. Click on: OK.
  13. Select the 'View more than one schedule' check box.
  14. Click on: New.
  15. Enter 7:30 as the start time.

    30 minutes later than the first schedule.

  16. Click on: OK.

Directly to

  1. Configuration of scheduled tasks
  2. Schedule regular tasks
  3. Scheduled tasks with more than one schedule
  4. Check for presence of batch file with IF EXIST
  5. Command line for general logging via batch file


Command Line Utility

Work area