ASP GetExtensionName yöntemi

tanım ve kullanım

GetExtensionName yöntemi, belirtilen yolun son bileşeninin dosya uzantısını içeren bir dize döndürür.

grama:

FileSystemObject.GetExtensionName(path)
parametre tanım
yol zorunludur. Dosya uzantısını içeren dosya yolunu döndürmelidir.

örnek

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

Çıktı:

htm