How to Create Multiple Directories

Posted December 15th @ 9:20 pm by m3Rlin

The standard MkDir() function can create only one directory, it can not create subdirectories at one time. This function allows you to create multiple directories (directories inside directories). Delphi 4+ have the ForceDirectories() routine which does the same thing. It is declared in the FileCtrl unit.

uses
SysUtils, FileCtrl;

procedure MkDirMulti(sPath: string);
begin
if sPath[Length(sPath)] = [...]

How to Duplicate a TTable

Posted December 15th @ 4:25 pm by m3Rlin

There are various ways to copy/duplicate databases. Using TBatchMover you can copy the structure and data but can’t copy the index files. Then again when you use FileCopy() you can’t copy the tables corresponding index files automatically and you have to define all the files. One of the ways to duplicate a database is to [...]

« Previous EntriesNext Entries »