Código Delphi [-] //returns the parent directory for the //provided "path" (file or directory) function GetParentDirectory(path : string) : string; begin result := ExpandFileName(path + '\..') end;
//returns the parent directory for the //provided "path" (file or directory) function GetParentDirectory(path : string) : string; begin result := ExpandFileName(path + '\..') end;