[Lazarus] How to create a directory from a path string? (cross-platform needed).

silvioprog silvioprog at gmail.com
Tue Mar 15 18:09:24 CET 2011


2011/3/15 Peter Williams <pewilliams2010 at live.com>:
(...)
var
  Str1 : string;
begin
  Str1 := GetAppConfigDir(False);
  if not DirectoryExists(Str1) then
    ForceDirectory(Str1);
(...)

Good luck. ;)

-- 
Silvio Clécio
=================================================
Blog - silvioprog.com.br
Twitter - twitter.com/silvioprog
LazSolutions - code.google.com/p/lazsolutions
Lazarus-BR - http://groups.google.com.br/group/lazarus-br?hl=pt-BR
=================================================


More information about the Lazarus mailing list