Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

<package> Element (Windows Script Host)

Encloses multiple job definitions in a Windows Script (.wsf) file.


                      <package>
   code for one or more jobs
</package> 

The <package> element is optional when a .wsf file contains only one job.

The following example incorporates two jobs into one .wsf file that uses 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>

Community Additions

Show:
© 2015 Microsoft