onerror

Syntax: ONERROR [GOTO labelname or SHELL commandline or EXIT or CONTINUE] This must come before the command you wish to monitor.

What it does: If an error is encountered, from this point on perform the specified action. The possible actions are:

  • GOTO labelname - Jump to labelname and continue processing from that point.
  • SHELL commandline - Open an MS-DOS shell, and execute commandline on the local system.
  • CONTINUE - Continue processing the script.
  • EXIT - Terminates any further execution of the script. However, any connection with a site is not disconnected unless the script is terminated or a CLOSE command is executed.
Note: If no action is specified, the script continues processing.

The CONTINUE and EXIT commands can be used only within an ONERROR or ONSUCCESS command.