Felipe Monteiro de Carvalho wrote:
Found CopyFile here, but it throws an exception every time I use it.
Do the folder must exists for target file (would it be automatically
created), or I must care about creating it?

Are you using PChar for the file names?

I think the directory must exist.

Use the ForceDirectories function in SysUtils unit. It creates all
necessary directories in one step and is multiplatform.

Here is it's declaration / description:

function ForceDirectories(const Dir: String):Boolean;

Description:

ForceDirectories tries to create any missing directories in Dir till
the whole path in Dir exists. It returns True if Dir already existed
or was created succesfully. If it failed to create any of the parts,
False is returned.

--
Felipe Monteiro de Carvalho

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

File names are from StringGrid.Cells[x,y], thus, 'normal' strings.
I'll try ForceDirectories, and I'll report back.
Thanks

Boban

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to