GetParentDirectory
//returns the parent directory for the
//provided "path" (file or directory)
function GetParentDirectory(path : string) : string;
begin
result := ExpandFileName(path + '\..')
end;
Returns the full path of a file name with the network drive portion in UNC format.
Unit
Sysutils
Category
file name utilities
function ExpandUNCFileName(const FileName: string): string;
//provided "path" (file or directory)
function GetParentDirectory(path : string) : string;
begin
result := ExpandFileName(path + '\..')
end;
Returns the full path of a file name with the network drive portion in UNC format.
Unit
Sysutils
Category
file name utilities
function ExpandUNCFileName(const FileName: string): string;

0 条评论:
发表评论
<< 主页