ASP GetBaseName 方法
❮ FileSystemObject 物件參考大全
GetBaseName 方法返回指定路徑中檔案或資料夾的基本名稱。
語法
FileSystemObject.GetBaseName(path)
引數 | 描述 |
---|---|
path | 必需。要返回其基本名稱的檔案或資料夾的路徑 |
示例
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>
輸出
3dgarro
❮ FileSystemObject 物件參考大全