我想编写一个VB脚本,它将返回远程计算机上进程的当前内存利用率.
我目前通过greping pslist.exe的输出来获取信息,但这并不理想.
我正在编写一个简单的asp页面,以显示基于某些XML的团队rota.这是XML:
<rota>
<shift date="20091201" primary="Chan" secondary="John" notes="notes"></shift>
<shift date="20091202" primary="Mike" secondary="Alex" notes="notes"></shift>
<shift date="20091203" primary="Ross" secondary="Mike" notes="notes"></shift>
<shift date="20091204" primary="Neil" secondary="Ross" notes="notes"></shift>
</rota>
Run Code Online (Sandbox Code Playgroud)
我希望我的asp页面显示今天的rota详细信息,以及未来几天的详细信息.从那以后,我希望能够设置一个未来的日子,看看谁在努力,然后我希望能够将ASP的YYYYMMDD日期传递给处理XML的XSL.
这是我到目前为止的XSL,现在突出显示硬编码的"当前"日期:
<xsl:template match="rota">
<html>
<head>
<title>Team Rota</title>
<LINK type="text/css" rel="stylesheet" href="http://www.csfb.net/homepage/global/scripts/csfb_intranet.css"/>
</head>
<body>
<table border="1">
<TR><TH>Date</TH><TH>Primary</TH><TH>Secondary</TH><TH>Notes</TH></TR>
<xsl:for-each select="shift">
<tr>
<xsl:choose>
<xsl:when test="@date = '20091203'">
<td bgcolor='FFF0F0'><xsl:value-of select="@date"/></td>
</xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="@date"/></td>
</xsl:otherwise>
</xsl:choose>
<td><xsl:value-of select="@primary"/></td>
<td><xsl:value-of select="@secondary"/></td>
<td><xsl:value-of select="@notes"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
Run Code Online (Sandbox Code Playgroud)
这是ASP,还没有传递任何参数:
''// Load the XML
sourcefile = "rota.xml"
set source = …Run Code Online (Sandbox Code Playgroud)