<html>
<head>
<title>Server对象的MapPah方法转换路径</title>
</head>
<body>
<p align="center"><b>Server对象的MapPaht方法转换路径</b></p>
<table align="center" border=0>
<tr>
  <td>服务器的根目录是：</td>
  <td><%=Server.MapPath("/")%></td>
</tr>
<tr>
  <td>当前目录的上层目录是：</td>
  <td><%=Server.MapPath("../") %></td>
</tr>
<tr>
  <td>当前目录是：</td>
  <td><%=Server.MapPath("./") %></td>
</tr>
<tr>
  <td>当前文件是：</td>
  <td><%=Server.MapPath(Request.ServerVariables("path_info"))%></td>
</tr>
<tr>
  <td>4-04.asp文件绝对路径是：</td>
  <td><%=Server.MapPath("/4-04.asp")%></td>
</tr>
<tr>
  <td>4-04.asp文件相对路径是：</td>
  <td><%=Server.MapPath("4-04.asp") %></td>
</tr>
</table>
</body>
</html>
