Mathematica 9 is now available

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

DirectoryName

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.



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.