正确函数是:
<%
Path = "d:1.35.147.torrent"
function cutname(path)
Dim place,pathlen
if path = "" then
exit function
end if
place = instrrev(path,".")
pathlen = len(path)
cutname = right(path,pathlen-place)
response.Write""&cutname&""
end function
cutname(path) '调用显示
%>
<%
Path = "d:1.35.147.torrent"
function cutname(path)
Dim place,pathlen
if path = "" then
exit function
end if
place = instrrev(path,".")
pathlen = len(path)
cutname = right(path,pathlen-place)
response.Write""&cutname&""
end function
cutname(path) '调用显示
%>
[此贴子已经被作者于2007-10-5 16:58:28编辑过]
人人为我,我为人人!