Windows ½Å±¾ËÞÖ÷  

<runtime> ÔªËØ

½«Ä³¸ö½Å±¾µÄһϵÁÐÔËÐÐʱ²ÎÊý×éºÏÆðÀ´¡£

<runtime>
    <named attributes etc. />
    <unnamed attributes etc. />
    <example>Example Text</example>
    …
</runtime>

˵Ã÷

ShowUsage ·½·¨Ê¹ÓÃÓÉ <runtime> ÔªËØÀ¨ÆðÀ´µÄÐÅÏ¢£¬ÒÔ±ãÏÔʾ½Å±¾µÄÔËÐÐʱ²ÎÊý¡£

ÓÉÓÚ <runtime> ÔªËØÀ¨ÔÚÒ»¶Ô job ±ê¼ÇÖУ¬Òò´ËËù¶¨ÒåµÄÔËÐÐʱ²ÎÊýÖ»ÊÊÓÃÓÚ¸Ã×÷Òµ¡£

×¢Òâ   Ê¹Óà 5.6 °æ£¬<runtime> ÔªËØÖÐËùÀ¨µÄÊý¾ÝÖ»ÓÃÓÚ×ÔÎÒ˵Ã÷£¬ÒÔ¼°Îª ShowUsage ËùÏÔʾµÄÊý¾ÝÉèÖøñʽ¡£<runtime> ÔªËز»¶ÔËüËù°üº¬µÄ²ÎÊýÇ¿ÖÆʵʩֵ¼¯ºÏ£¨¼´ÃüÁîÐÐÖжªÊ§¡°±ØÐèµÄ¡±²ÎÊý²»»áµ¼Ö´íÎ󣩡£Èç¹û <runtime> ÔªËØ°üÀ¨ÔÚ .wsf ÎļþÖУ¬ÔòÓà "/?" ²ÎÊýÔËÐнű¾½«»áÏÔʾÓ÷¨²¢Í˳ö¡£

ʾÀý

ÏÂÃæµÄ½Å±¾½«ÑÝʾ <runtime> ÔªËصÄÓ÷¨£º

<job>
<runtime>
<named
name="server"
helpstring="The server to run the script on"
type="string"
required="true"
        />
</runtime>
<script language="JScript">
if (!WScript.Arguments.Named.Exists("server"))
  {
WScript.Arguments.ShowUsage();
  }
// ... ´Ë´¦ÊÇһЩ½Å±¾
</script>
</job>

Çë²ÎÔÄ

ShowUsage ·½·¨ | <named> ÔªËØ | <unnamed> ÔªËØ | <description> ÔªËØ | <example> ÔªËØ