ASP GetExtensionName 메서드
❮ 완전한 FileSystemObject 개체 참조
GetExtensionName 메서드는 지정된 경로의 마지막 구성 요소에 대한 파일 확장명 이름이 포함된 문자열을 반환합니다.
통사론
FileSystemObject.GetExtensionName(path)
Parameter | Description |
---|---|
path | Required. The path for the file whose file extension name is to be returned |
예시
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm"))
set fs=nothing
%>
Output:
htm
❮ 완전한 FileSystemObject 개체 참조