ASP GetParentFolderNameメソッド
完全なFileSystemObjectオブジェクトリファレンス
GetParentFolderName メソッドは、指定されたパス内の最後のコンポーネントの親フォルダーの名前を返します。
構文
FileSystemObject.GetParentFolderName(path)
| 引数 | 説明 |
|---|---|
| path | 必須です。親フォルダー名を返す対象のファイルまたはフォルダーのパスを指定します。 |
例
<%
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur")
Response.Write(p)
set fs=nothing
%>
出力:
c:\winnt\cursors
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur")
Response.Write(p)
set fs=nothing
%>
出力:
c:\winnt\cursors
完全なFileSystemObjectオブジェクトリファレンス その他の拡張機能