ASP Get File Extension Method

ASP Get File Extension Method

 use the GetExtensionName method to get the file extension of the last component in a specified path.

<html>
<body>

<%
Set fs=Server.CreateObject(”Scripting.FileSystemObject”)

Response.Write(”The file extension of the file file1 is: “)
Response.Write(fs.GetExtensionName(”c:\test\file1.mie”))

set fs=nothing
%>

</body>
</html>

Leave a Reply


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.