源代码:
<% 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 %>
运行结果:
<% 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 %>