ASPGetExtensionNameメソッド_
❮完全なFileSystemObjectオブジェクトリファレンス
GetExtensionNameメソッドは、指定されたパスの最後のコンポーネントのファイル拡張子名を含む文字列を返します。
構文
FileSystemObject.GetExtensionName(path)
Parameter | Description |
---|---|
path | Required. The path for the file whose file extension name is to be returned |
例
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetExtensionName("c:\test\test.htm"))
set fs=nothing
%>
Output:
htm
❮完全なFileSystemObjectオブジェクトリファレンス