<html> <body> <% Set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur") Response.Write("c:\windows\cursors\abc.cur 的父文件夹名称是:" & p) set fs=nothing %> </body> </html>
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur") Response.Write("c:\windows\cursors\abc.cur 的父文件夹名称是:" & p) set fs=nothing %>