Microsoft® Windows® Script Host <job> Element |
WSH Reference Version 2 |
Allows multiple jobs to be defined in a single file. Because this is an enclosing tag, every tag within the Job tag will apply to that job.
<job [id=JobID]>
job code
</job>
Part Description JobID Optional. The unique (to the file) identifier of the job.
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>