DirectoryName

DirectoryName["name"]

从指定的文件中提取目录名称.

更多信息和选项

范例

打开所有单元关闭所有单元

基本范例  (1)

得到 Windows 上文件的目录名:

获得 Mac OS X 上文件的目录名:

应用 DirectoryName 两次:

范围  (1)

获取一个文件的目录名,该文件被指定为一个 File 对象:

Wolfram Research (1996),DirectoryName,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DirectoryName.html (更新于 2016 年).

文本

Wolfram Research (1996),DirectoryName,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DirectoryName.html (更新于 2016 年).

CMS

Wolfram 语言. 1996. "DirectoryName." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2016. https://reference.wolfram.com/language/ref/DirectoryName.html.

APA

Wolfram 语言. (1996). DirectoryName. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DirectoryName.html 年

BibTeX

@misc{reference.wolfram_2024_directoryname, author="Wolfram Research", title="{DirectoryName}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/DirectoryName.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_directoryname, organization={Wolfram Research}, title={DirectoryName}, year={2016}, url={https://reference.wolfram.com/language/ref/DirectoryName.html}, note=[Accessed: 18-November-2024 ]}