一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

asp教程:fso获取的文件扩展名

时间:2008-10-31 编辑:简简单单 来源:一聚教程网

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

转载请注明来自http://www.111com.net/asp/asp.html

热门栏目