当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP GetBaseName 方法

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP GetBaseName 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 325 ::
收藏到网摘: n/a

The GetBaseName method returns the base name of a file or folder in the specified path.
ASP GetBaseName 的作用是返回指定路径下文件或文件夹的基本名称。

Syntax
语法

FileSystemObject.GetBaseName(path)

Parameter参数 Description描述
path Required. The path for the file or folder whose base name is to be returned
必要组件。输入指定的文件或文件夹的路径,返回最底层文件或文件夹的名称

Example
案例

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:winntcursors3dgarro.cur"))
set fs=nothing
%>

Output:

3dgarro

评论 (0) All

登陆 | 还没注册?