源代码:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") Response.Write(fs.GetBaseName("c:winntcursors3dgarro.cur")) Response.Write("
") Response.Write(fs.GetBaseName("c:winntcursors")) Response.Write("
") Response.Write(fs.GetBaseName("c:winnt")) set fs=nothing %>
运行结果:
<% Set fs=Server.CreateObject("Scripting.FileSystemObject") Response.Write(fs.GetBaseName("c:winntcursors3dgarro.cur")) Response.Write("
") Response.Write(fs.GetBaseName("c:winntcursors")) Response.Write("
") Response.Write(fs.GetBaseName("c:winnt")) set fs=nothing %>