½«Ä³¸ö½Å±¾µÄһϵÁÐÔËÐÐʱ²ÎÊý×éºÏÆðÀ´¡£
<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> ÔªËØ