ASP GetBaseNameメソッド


FileSystemObject 对象参考手册完全な FileSystemObject オブジェクトリファレンス

GetBaseName メソッドは、指定されたパス内のファイルまたはフォルダーのベース名を返します。

構文

FileSystemObject.GetBaseName(path)

パラメータ 説明
path 必須です。ベース名を返すファイルまたはフォルダーのパス。

例

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>

出力:

3dgarro


FileSystemObject 对象参考手册完全な FileSystemObject オブジェクトリファレンス その他の拡張機能