Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

DirectoryName

Usage

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


Notes

DirectoryName works differently on different computer systems.
DirectoryName["directory"] is normally equivalent to ParentDirectory["directory"].
DirectoryName["name", n] applies DirectoryName n times to name.
DirectoryName yields output appropriate for use in SetDirectory and ToFileName.
• If name contains no directory specification, DirectoryName["name"] returns "".
• See also: $Input, Directory.
• New in Version 3.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: