提供有關(guān)作業(yè)用法的示例。
<example> Example text </example>
<example> 元素括在 <runtime> 元素中。
下面的腳本將演示 <example> 元素的用法:
<job>
<runtime>
<description>This script reboots a server</description>
<named
name = "Server"
helpstring = "Server to run the script on"
type = "string"
required = "true"
/>
<example>Example: reboot.wsf /Server:scripting</example>
</runtime>
</job>
<example>
和 </example>
標(biāo)記之間的所有內(nèi)容都會被選取,包括新行和額外的空白區(qū)域。從該腳本中調(diào)用 ShowUsage 方法將生成下列輸出:
該腳本將會重新啟動服務(wù)器
用法:reboot.wsf /server:value
選項:
服務(wù)器:要在其上運行腳本的服務(wù)器
示例:
reboot.wsf /server:scripting