课程推荐:

ASP GetBaseName 方法

定义和用法

GetBaseName 方法返回指定路径中的文件或文件夹的基准名称。

语法:
FileSystemObject.GetBaseName(path) 参数
描述 必需的。其基准名称需被返回的文件或文件夹的路径。

实例

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>

Uttalande:

3dgarro