Wolfram Research製品ご購入サービスとリソース会社概要その他のWolframサイト
Mathematica > ディレクトリとその操作 >

DirectoryName

DirectoryName["name"]
ファイル指定情報からディレクトリ名を抽出する.
  • 使用のシステムによりDirectoryNameの返す内容は違う.
  • name のファイル指定にディレクトリ指定がない場合,DirectoryName["name"]は,""を返す.
Windowsでディレクトリの文字列を得る:
In[1]:=
Click for copyable input
Out[1]=
DirectoryNameを2回適用する:
In[2]:=
Click for copyable input
Out[2]=
バージョン 3 の新機能
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team