Latest web development tutorials

método ASP GetExtensionName

Objeto FileSystemObject Referencia Referencia completa de objetos FileSystemObject

GetExtensionName método devuelve una cadena que contiene la ruta especificada en la extensión de archivo composición final.

gramática

FileSystemObject.GetExtensionName(path)

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

Ejemplos

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

输出:

htm


Objeto FileSystemObject Referencia Referencia completa de objetos FileSystemObject