TUTORIAL后端与 Web 服务FETCHED

ASP GetBaseName 方法

ASP GetBaseName 方法 完整的 FileSystemObject 对象参考手册 GetBaseName 方法返回指定路径中的文件或文件夹的基准名称。 语法 FileSystemObject.GetBaseName(path) 参数 描述 path 必需的。需被返回基准名称的文件或文件夹的路径。 实例 <% dim fs set f..

更新于 2026/7/16

教程详情页默认 noindex。

ASP GetBaseName 方法


FileSystemObject 对象参考手册 完整的 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 对象参考手册 完整的 FileSystemObject 对象参考手册