ASP GetParentFolderName メソッド
定義と使用法
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) fs=nothing %>
出力:
c:\winnt\cursors