var sBackupPath : string; begin ... sBackupPath := gsExePath + gcsDictionarySubDir; { check if not exists } if not DirectoryExists( sBackupPath ) then begin { try to create new directory } b := ForceDirectories( sBackupPath ); if not b then begin ShowMessage( 'Backup directory cannot be created.' ); exit; end; end; ...
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Showing posts with label delphi - ForceDirectories(). Show all posts
Showing posts with label delphi - ForceDirectories(). Show all posts
Tuesday, April 17, 2018
DELPHI - How to create new directory (..and check if directory exists)
Subscribe to:
Posts (Atom)