Mathematica 9 is now available

Get (modified)ToFileName

DirectoryName

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

FilledSmallSquareDirectoryName works differently on different computer systems.

FilledSmallSquareDirectoryName["directory"] is normally equivalent to ParentDirectory["directory"].

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

FilledSmallSquareDirectoryName yields output appropriate for use in SetDirectory and ToFileName.

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

FilledSmallSquare See The Mathematica Book: Section 2.11.4.

FilledSmallSquare See also: $Input, Directory.

Get (modified)ToFileName



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.