斑竹,你的方法不行,下面的结果值是:.147,正确的应该是:torrent.
<%
filename = "d:1.35.147.torrent"
function getext(filename)
setname=split(filename,".")
numname=ubound(setname)
if numname=0 then
getext="no"
else
getext="."&setname(numname-1)
end if
response.Write""&getext&""
end function
getext(filename)
%>