Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2010
    Posts
    74

    Default Option to prevent error dialog in unattended script?

    I'm trying to make a script that will run as a scheduled task. I don't want any interactive dialogs, only to exit returning errorlevel.

    I have a case where the error dialog "A Fatal Error has occurred: Unable to load base folder. The script will now exit." appears and requires an OK click.

    In the BC4 help, I see "option stop-on-error", but it seems to be defaulting to on. I don't see "option do-not-stop-on-error".

    I tried option confirm yes-to-all / no-to-all, but in either case the script still shows the dialog.

    I see the commandline option /silent, but I would like to have the status window available while debugging.

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,890

    Default

    Hello,

    /silent is the only method of suppressing a fatal error dialog. In cases where the script needs to continue, /silent in combination with a log command as the first line of the script are often used.

    The stop-on-error is for smaller, file operation errors, and not a fatal error like failing to load a base folder.
    Aaron P Scooter Software

  3. #3
    Join Date
    Apr 2010
    Posts
    74

    Default

    OK, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •