CommandPath - Returns True if file exists, and could be renamed into a new filename using the
ChangeFileExt function.
CopyFile - Splits Filename in DirStr + NameStr + ExtStr.
CopyToBackup - Returns True if file exists, and could be renamed into a new filename using the
ChangeFileExt function.
JustFileName - Truncates filename, calls TruncFileNameAt with MaxLen = sizeFileTrunc
RenameToBackup - Copies Source filename to Target file name, returns true if OK
SafeRenameFile - full Returns executable path
TruncFileNameAt - First copies Source to target, and if OK, deletes source.
TruncFileNameDef - Truncates filename by omitting subdirectories
DEFSIZE_FILETRUNC
function CommandPath: String;
Returns True if file exists, and could be renamed into a new filename using the
ChangeFileExt function. BackupExt should include the '.' character
function CopyFile(const SourceName, TargetName: String): Boolean;
Splits Filename in DirStr + NameStr + ExtStr. Returns NameStr only if drives are equal then rename else copy
function CopyToBackup(const FileName, BackupExt: String): Boolean;
Returns True if file exists, and could be renamed into a new filename using the
ChangeFileExt function. BackupExt should include the '.' character
function JustFileName(const FileName: String): string;
Truncates filename, calls TruncFileNameAt with MaxLen = sizeFileTrunc
function RenameToBackup(const FileName, BackupExt: String): Boolean;
Copies Source filename to Target file name, returns true if OK
function SafeRenameFile(const SourceName, TargetName: String): Boolean;
full Returns executable path
function TruncFileNameAt(const FileName: String; MaxLen: Byte): String;
First copies Source to target, and if OK, deletes source. This works even OK when
Source and Target are plcaed on different drives
function TruncFileNameDef(const FileName: String): String;
Truncates filename by omitting subdirectories
DEFSIZE_FILETRUNC = 32