ASP GetBaseName 메서드
정의와 사용법
GetBaseName 메서드는 지정된 경로에서 파일이나 폴더의 기본 이름을 반환합니다.
문법:
FileSystemObject.GetBaseName(path)
파라미터 | 설명 |
---|---|
경로 | 필수입니다. 반환된 파일이나 폴더의 경로가 기준 이름으로 되어야 합니다. |
인스턴스
<% dim fs set fs=Server.CreateObject("Scripting.FileSystemObject") Response.Write("}}fs.GetBaseName("c:\winnt\cursors\3dgarro.cur")) fs=nothing 설정 %>
출력:
3dgarro