ASP GetDriveName 메서드
❮ 완전한 FileSystemObject 개체 참조
GetDriveName 메서드는 지정된 경로의 드라이브 이름이 포함된 문자열을 반환합니다.
통사론
FileSystemObject.GetDriveName(path)
Parameter | Description |
---|---|
path | Required. The path that will return a drive name |
예시
<%
dim fs,dname
set fs=Server.CreateObject("Scripting.FileSystemObject")
dname=fs.GetDriveName("c:\test\test.htm")
Response.Write(dname)
set fs=nothing
%>
Output:
c:
❮ 완전한 FileSystemObject 개체 참조