ASP GetExtensionName 方法
❮ FileSystemObject 对象参考大全
GetExtensionName 方法返回一个字符串,其中包含指定路径的最后一个组件的文件扩展名。
语法
FileSystemObject.GetExtensionName(path)
参数 | 描述 |
---|---|
path | 必需。要返回文件扩展名的文件的路径 |
示例
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm"))
set fs=nothing
%>
输出
htm
❮ FileSystemObject 对象参考大全