Metodo ASP GetExtensionName


❮ Riferimento completo dell'oggetto FileSystemObject

Il metodo GetExtensionName restituisce una stringa che contiene il nome dell'estensione file per l'ultimo componente in un percorso specificato.

Sintassi

FileSystemObject.GetExtensionName(path)

Parameter Description
path Required. The path for the file whose file extension name is to be returned

Esempio

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

Output:

htm

❮ Riferimento completo dell'oggetto FileSystemObject