Server.MapPath
Server.MapPath(경로)
- 경로
- 로컬 상대경로 또는 URL 가상경로
- * 반환값 *
- 상대경로 또는 URL 가상경로에 해당하는 서버 내(로컬) 절대경로를 반환
 
사용 예: asp 파일의 서버 내 로컬 경로를 얻기
<%@ language="VBScript" codepage="65001" %>
<%
 Session.CodePage = "65001"
 Response.ContentType = "text/html"
 Response.AddHeader "Content-Type", "text/html;charset=UTF-8"
 Response.Charset = "UTF-8"
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>codingCat.kr</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	</head>
	<body>
		<% 'Finding the physical path to a file %>
		<p><%=Server.MapPath(".")%></p>
	</body>
</html>
 
