Get file extension using ASP

by Nirmala 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.

Tagged in:

1310
like
1
dislike
0
mail
flag

You must LOGIN to add comments