Contains script that defines the behavior of a Windows Script (.wsf) file.
|
---|
<script language="language" [src="strFile"]>
script here </script> |
Arguments
- language
The name of the scripting language, such as VBScript or JScript, used in the script block.
- strFile
The name of the script file to include into the script block.
Remarks
Example
The following example incorporates two jobs into one .wsf file, using two different scripting languages:
| Copy Code |
---|
<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> |
See Also