源代码:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") Response.Write("The file name of the last component is: ") Response.Write(fs.GetFileName("c:winntcursors3dgarro.cur")) set fs=nothing %>
运行结果:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") Response.Write("The file name of the last component is: ") Response.Write(fs.GetFileName("c:winntcursors3dgarro.cur")) set fs=nothing %>