ASP GetBaseName 方法

2018-09-20 03:38 更新

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 对象参考手册
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号