开发者

How to Check whether a file is text file or not in ASP

How to Check whether a file is text file or not in AS开发者_开发知识库P


<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm"))
set fs=nothing
%>

Output:

htm 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜