Get file extension using ASP
by Nirmala[ Edit ] 2009-08-10 15:27:34
Hi...
Get the file extension using ASP.
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write("The file extension of the file: ")
Response.Write(fs.GetExtensionName("d:Inetpubwwwroot est.asp"))
set fs=nothing
%>
Use the above code and find the extension of the given file.