Returns the name of the directory that the file is in.
[Visual Basic] Public ReadOnly Property DirectoryName As String [C#] public string DirectoryName {get;} [C++] public: __property String* get_DirectoryName(); [JScript] public function get DirectoryName() : String;
A string representing the file's directory name.