ASP 경로 속성


❮ 완전한 파일 객체 참조

Path 속성은 지정된 드라이브, 파일 또는 폴더의 경로를 반환하는 데 사용됩니다.


통사론

DriveObject.Path

FileObject.Path

FolderObject.Path

드라이브 개체의 예

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("The path is " & d.Path)
set d=nothing
set fs=nothing
%>

Output:

The path is C:

File 객체의 예

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\asp\test\test.asp")
Response.Write("The path is: " & f.Path)
set f=nothing
set fs=nothing
%>

Output:

The path is: C:\asp\test\test.asp

Folder 객체의 예

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\asp\test")
Response.Write("The path is: " & fo.Path)
set fo=nothing
set fs=nothing
%>

Output:

The path is: C:\asp\test

❮ 완전한 파일 객체 참조