取得文件擴(kuò)展名
代碼:
<!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>
結(jié)果:
The file extension of the file 3dgarro is: cur
相關(guān)文章
- ASP Global.asa
- ASP Dictionary 對(duì)象
- ASP SkipLine 方法
- ASP ShortName 屬性
- ASP RemoveAll 方法
- ASP Buffer 屬性
- ASP Charset 屬性
- ASP AppendToLog 方法
- ASP CodePage 屬性
- ASP FolderExists 方法
- ASP GetFileName 方法
- ASP GetParentFolderName 方法
- ASP.NET HtmlAnchor 控件
- ASP.NET HtmlInputImage 控件
- ASP Transfer 方法
- ASP.NET Items 屬性
- welcome cookie
- 使用 asp 寫文本
- 將用戶重定向至一個(gè)不同的 url
- 創(chuàng)建 welcome cookie