Abends of Windows Scheduler

By gbhall
Feb 8, 2006
  1. I run overnight jobs using Windows Scheduler and it never ends properly.

    n the first case I run under Win98se and execute a batch file to do some backups.

    This batch file has all the necessary properties set to 'close window when process completes'. What happens is the batch file ends, but in fact it never does close the window itself, and the scheduler does not recognise the job is ended, so after waiting a certain time (as specified in the scheduler), the scheduler ends the job abnormally, and closes the window.

    In the second case I run under WinXP professional and execute MS XP Synctoy to do some backups, with the proper switches set as described in the help for Synctoy. What happens is Synctoy successfully runs to completion, then the scheduler abends with 'application generated an exception that could not be handled', plus some guff about the address which is always different.

    Am I missing something, or has MS REALLY not looked at scheduler for years and years, or checked if it actually works properly with Synctoy?
  2. Nodsu

    Nodsu TS Rookie Posts: 5,837   +6

    The Windows Task Scheduler ignores the properties set in .pif files. What you have to do, is tell Task manager to run the corresponding .pif file and not the .bat itself.

    Eg if you have magic.bat and you set its properties so that it would run minimised etc, then point the scheduler at magic.pif that was created in the same folder as the batch file.
  3. gbhall

    gbhall TechSpot Chancellor Topic Starter Posts: 2,423   +77

    One out of two !

    Thanks Nodsu - your solution is correct for scheduling a batch file.

    Is there a pif method for SyncToy in XP ? I just faithfully followed the help from within Synctoy itself on how you schedule it, and (apart from the fact it does the job), it always abends at the end.
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...