取得文件名

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

Set fs=Server.CreateObject("Scripting.FileSystemObject")

 

Response.Write("The file name of the last component is: ")

Response.Write(fs.GetFileName("c:\winnt\cursors\3dgarro.cur"))

set fs=nothing

%>

 

 

</body>

</html>

结果:

The file name of the last component is: 3dgarro.cur

相关文章