ASP GetExtensionName ·½·¨
¶¨ÒåºÍÓ÷¨
GetExtensionName ·½·¨·µ»Ø°üº¬Ö¸¶¨Â·¾¶ÖÐ×îºó³É·ÖµÄÎļþÀ©Õ¹ÃûµÄ×Ö·û´®¡£
Óï·¨£º
FileSystemObject.GetExtensionName(path)
²ÎÊý | ÃèÊö |
---|---|
path | ±ØÐèµÄ¡£Ðè·µ»ØÎļþÀ©Õ¹ÃûµÄÎļþµÄ·¾¶¡£ |
ʵÀý
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm")
)
set fs=nothing
%>
Êä³ö£º
htm