Mathematica 9 is now available

ParentDirectory

Usage

ParentDirectory[ ] gives the parent of the current working directory.
ParentDirectory["dir"] gives the parent of the directory dir.


Notes

ParentDirectory returns the full name of the directory as a string.
ParentDirectory works only under operating systems which support hierarchical file systems.
• New in Version 2.


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.