ASP GetBaseName 메서드
❮ 완전한 FileSystemObject 개체 참조
GetBaseName 메서드는 지정된 경로에 있는 파일 또는 폴더의 기본 이름을 반환합니다.
통사론
FileSystemObject.GetBaseName(path)
Parameter | Description |
---|---|
path | Required. The path for the file or folder whose base name is to be returned |
예시
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>
Output:
3dgarro
❮ 완전한 FileSystemObject 개체 참조