This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / New in Version 3.x / System Interface /


FilledSmallSquare DirectoryName["name"] extracts the directory name from the specification for a file.

FilledSmallSquare DirectoryName works differently on different computer systems.

FilledSmallSquare DirectoryName["directory"] is normally equivalent to ParentDirectory["directory"].

FilledSmallSquare DirectoryName["name", n] applies DirectoryName n times to name.

FilledSmallSquare DirectoryName yields output appropriate for use in SetDirectory and ToFileName.

FilledSmallSquare If name contains no directory specification, DirectoryName["name"] returns "".

FilledSmallSquare See Section 2.12.4.

FilledSmallSquare See also: $Input, Directory.

FilledSmallSquare New in Version 3.