Latest web development tutorials

Metoda ASP GetExtensionName

FileSystemObject Object Reference Kompletna FileSystemObject Object Reference

Metoda GetExtensionName zwraca ciąg znaków zawierający określoną ścieżkę w ostatnim rozszerzeniem składu.

gramatyka

FileSystemObject.GetExtensionName(path)

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

Przykłady

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

输出:

htm


FileSystemObject Object Reference Kompletna FileSystemObject Object Reference