ASP GetParentFolderName ·½·¨
¶¨ÒåºÍÓ÷¨
GetParentFolderName ·½·¨·µ»ØÖ¸¶¨µÄ·¾¶ÖÐ×îºó³É·ÖµÄ¸¸Îļþ¼ÐµÄÃû³Æ¡£
Óï·¨£º
FileSystemObject.GetParentFolderName(path)
²ÎÊý | ÃèÊö |
---|---|
path | ±ØÐèµÄ¡£Ðè·µ»ØÆä¸¸Îļþ¼ÐµÄÎļþ»òÎļþ¼ÐµÄ·¾¶¡£ |
ʵÀý
<%
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur")
Response.Write(p)
set fs=nothing
%>
Êä³ö£º
c:\winnt\cursors