Método ASP GetExtensionName
❮ Referência Completa do Objeto FileSystemObject
O método GetExtensionName retorna uma string que contém o nome da extensão de arquivo do último componente em um caminho especificado.
Sintaxe
FileSystemObject.GetExtensionName(path)
Parameter | Description |
---|---|
path | Required. The path for the file whose file extension name is to be returned |
Exemplo
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm"))
set fs=nothing
%>
Output:
htm
❮ Referência Completa do Objeto FileSystemObject