Appendix A. Windows Scripting API
Use the Windows Script Host Quick Reference to help you quickly find and determine usage for elements you want to work with. The reference is organized by element and by object.
XML Elements
<?XML ?>
<?XML
version="version
"
[standalone="yes"] ?>
<runtime>
<runtime> Self-documentation code. Contains <description>, <example>, <usage>, <named>, and <unnamed> elements. </runtime>
<description>
<description< Script description in one or more lines. </description<
<example>
<example> Usage example for the job. </example>
<usage>
<usage> Usage text that overrides other example and descriptive text. </usage>
<named>
<named> name="ArgName" helpstring="HelpText" [type="string|boolean|simple"] [required="true|false"] />
<unnamed>
<unnamed> name="PlaceHolderName" helpstring="HelpText" [many="true|false"] [required="true|false"] />
<package>
<package> Code for one or more jobs. Contains <job> elements. </package>
<job>
<job [id="JobID
"]>
Job code. Contains <?job?>, <object>, <reference>, <resource>, and <script> elements.
</job>
<?job ?>
<?job [error="flag
"] [debug="flag
"] ?>
<object>
<object id="objectID
" [classid="clsid:GUID" | progid="programID
"] [events="true|false" />
<reference>
<reference [object="progID
" | guid="typelibGUID
"] [version="version
"] />
<resource>
<resource id="resourceID
">
Isolated string or number
</resource>
<script>
<script language="language
" [src="path
"]> script code </script>
getResource Static Method
Returns the contents of a <resource>
element as a string.
Usage: ...
Get Microsoft® PowerShell, VBScript and JScript® Bible now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.