ASP GetBaseName 方法
定義和用法
GetBaseName 方法返回指定路徑中的文件或文件夾的基準(zhǔn)名稱。
語法:
FileSystemObject.GetBaseName(path)
| 參數(shù) | 描述 |
|---|---|
| path | 必需的。其基準(zhǔn)名稱需被返回的文件或文件夾的路徑。 |
實(shí)例
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>
輸出:
3dgarro