Unit FmxUtils

Classes

Functions

CopyFile -
ExecuteFile -
FileDateTime -
GetFileSize - GetFileSize function } Returns the size of the named file without opening the file.
HasAttr -
MoveFile - MoveFile procedure } Moves the file passed in FileName to the directory specified in DestDir.

Types

Constants

Variables


Functions


procedure CopyFile(FileName, DestName: String;Gauge: TGauge);


function ExecuteFile(const FileName, Params, DefaultDir: string; ShowCmd: Integer): THandle;


function FileDateTime(const FileName: string): TDateTime;


function GetFileSize(const FileName: string): LongInt;

GetFileSize function } Returns the size of the named file without opening the file. If the file doesn't exist, returns -1.

function HasAttr(const FileName: string; Attr: Word): Boolean;


procedure MoveFile(const FileName, DestName: TFileName);

MoveFile procedure } Moves the file passed in FileName to the directory specified in DestDir. Tries to just rename the file. If that fails, try to copy the file and delete the original. Raises an exception if the source file is read-only, and therefore cannot be deleted/moved.

Types


Constants


Variables