ELEMENT:  <?job?>

The <?job?> tag is an XML processing instruction that tells WSH whether or not to display error messages during script execution, and whether or not to run the script debugger if an error does occur.

Syntax: <?job error="flag" debug="flag" ?>

Attribute: error
The optional error attribute can be one of the following Boolean values: "true", "1", "false", or "0". When set to true or 1, WSH will display an error message if an error occurs during script execution.

Attribute: debug
The optional debug attribute can be one of the following Boolean values: "true", "1", "false", or "0". When set to true or 1, WSH will run the script debugger if an error occurs during script execution.

The following sample code illustrates the use of this tag.

<?XML version="1.0" ?>
<!-- Filename: demo.wsf-->
<package>
  <job>
  <?job error="true" debug="true"?>
    <script language="VBScript">
      WScript.Echo "Hello World!"
    </script>
  </job>
</package>

Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information