Latest web development tutorials

ASP GetExtensionName method

FileSystemObject Object Reference Complete FileSystemObject Object Reference

GetExtensionName method returns a string that contains the specified path in the final composition file extension.

grammar

FileSystemObject.GetExtensionName(path)

参数 描述
path 必需的。需返回文件扩展名的文件的路径。

Examples

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm"))
set fs=nothing
%>

输出:

htm


FileSystemObject Object Reference Complete FileSystemObject Object Reference