ASP GetExtensionName 메서드
정의와 사용법
GetExtensionName 메서드는 지정된 경로의 마지막 요소에 포함된 파일 확장명을 포함하는 문자열을 반환합니다.
문법:
FileSystemObject.GetExtensionName(path)
파라미터 | 설명 |
---|---|
경로 | 필수입니다. 파일 확장명을 포함하는 파일 경로를 반환해야 합니다. |
인스턴스
<% dim fs set fs=Server.CreateObject("Scripting.FileSystemObject") Response.Write(fs.GetExtensionName("c:\test\test.htm")) fs=nothing 설정 %>
출력:
htm