获取的名字父文件夹的指定的路径
这个例子演示如何使用GetParentFolderName方法得到的名字父文件夹的指定的路径。
下面来看看实例吧.
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:winntcursors3dgarro.cur")
Response.Write("The parent folder name of c:winntcursors3dgarro.cur is: " & p)
set fs=nothing
%>
输出结果.
The parent folder name of c:winntcursors3dgarro.cur is: c:winntcursors