Latest web development tutorials

metodo ASP GetExtensionName

FileSystemObject Object Reference Completa FileSystemObject Object Reference

Metodo GetExtensionName restituisce una stringa che contiene il percorso specificato nel file con estensione composizione finale.

grammatica

FileSystemObject.GetExtensionName(path)

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

Esempi

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

输出:

htm


FileSystemObject Object Reference Completa FileSystemObject Object Reference