A valid path to a directory
A String containing the name of the root directory of
Returns the name of the root directory of the drive on which
path resides (assuming that
path is valid). For example, the code:
returns the string
C:\ as the root directory.
path can be either an absolute path (a
complete path from the root directory to the target directory) or a
relative path (starting from the current directory to the target
path can be either a path on the local
system, the path of a mapped network drive, or a UNC path. For
example, the code:
\\Pentium\C, and if the folder
\\Pentium\C\AFolder maps to the network drive Z,
path cannot contain wildcard characters.