ASP GetAbsolutePathName 메서드


❮ 완전한 FileSystemObject 개체 참조

GetAbsolutePathName 메서드는 지정된 경로의 드라이브 루트에서 전체 경로를 반환합니다.

통사론

FileSystemObject.GetAbsolutePathName(path)

Parameter Description
path Required. The path to change to a complete path

현재 디렉토리가 c:\temp\test라고 가정합니다.

실시예 1

<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("c:")
response.write(path)
%>

Output:

c:\temp\test

실시예 2

<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("mydoc.txt")
response.write(path)
%>

Output:

c:\temp\test\mydoc.txt

실시예 3

<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("private\mydoc.txt")
response.write(path)
%>

Output:

c:\temp\test\private\mydoc.txt

❮ 완전한 FileSystemObject 개체 참조