取得文件扩展名

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

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

 

Response.Write("The file extension of the file 3dgarro is: ")

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

 

set fs=nothing

%>

 

</body>

</html>

结果:

The file extension of the file 3dgarro is: cur

相关文章