Microsoft® Windows® Script Host <?job ?> Element |
WSH Reference Version 2 |
XML processing instruction that specifies attributes for error handling.
<?job error="flag" debug="flag" ?>
Part Description error, debug A Boolean value: "true" or "false," 1 or 0, or "yes" or "no." "False" is the default value for all attributes.
Although most batch files normally run silently during production, you might find it useful to be notified of errors in the Windows Script Component file as you are developing it. You can specify the following types of error notifications:
Attribute Description error Set to "true" to allow error messages for syntax or run-time errors in the Windows Script file. debug Set to "true" to enable debugging. If debugging is not enabled, you will be unable to launch the script debugger for a WSH batch file.
The following example incorporates two jobs into one .wsf file using two different scripting languages:<package> <job id="DoneInVBS"> <?job debug="true"?> <script language="VBScript"> WScript.Echo "This is VBScript" </script> </job> <job id="DoneInJS"> <?job debug="true"?> <script language="JScript"> WScript.Echo("This is JScript"); </script> </job> </package>