当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP GetExtensionName 方法
The GetExtensionName method returns a string that contains the file extension name for the last component in a specified path.
ASP GetExtensionName的作用是返回指定路径下最末一级(一般是一个文件)文件扩展名的字符串。
| FileSystemObject.GetExtensionName(path) |
| Parameter参数 | Description描述 |
|---|---|
| path | Required. The path for the file whose file extension name is to be returned 必要参数。返回指定路径下文件的扩展名 |
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:testtest.htm"))
set fs=nothing
%> Output: htm |
评论 (0) All