asp教程:fso获取的文件扩展名
这个例子演示如何使用GetExtensionName方法得到的文件扩展名的最后部分中指定的路径。
来看个获取文章扩展名的实例教程吧.
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write("The file extension of the file 3dgarro is: ")
Response.Write(fs.GetExtensionName("c:winntcursors3dgarro.cur"))
set fs=nothing
%>
输出结果.
The file extension of the file 3dgarro is: cur