I don't know why the restore started to give an error (and it worked fine before) the directory is correctly created like before, but signs : File already exists...
It looks like you are using XP and don't have Acces Privileges problems.
And cDirectory is by date and time so it's a new directory and the files are not there.
Can you please try it if you hard code:
cDirectory is your temporary folder
"C:\Documents And Settings\<username>\...\Temp\TestDir"
Maybe your system is controlling something like Access Privileges and not letting the file to be copied and the error is misleading.
In the hurry I've introduced an error before the process itself so the error happened....so it's misunderstood me.
COPY FILE &cDestination TO &lcdrive and had not configured correctly the variables before the process...
==============================Início===============================================
EFUERTE # Eduardo 23/09/2010 07:56:31 PM
ERROR() = 1
MESSAGE() = File 'c:\geccvfp\&cdestination' does not exist.
MESSAGE(1) = COPY FILE &cDestination TO &lcdrive
PROGRAM() = RST_DBF2
PROGRAM(1) = MAIN
LINE() = 56
LINE(1) = 56
ALIAS =
Call Stack Level = 1
Current program filename= c:\geccvfp\main.fxp
Module or Object name= main
Module or Object Source filename= c:\geccvfp\main.prg
Line number in the object source file= 426
Source line contents= Read Events
----------------------------------------------------------
Call Stack Level = 2
Current program filename= c:\geccvfp\rst_dbf2.fxp
Module or Object name= ON...
Module or Object Source filename= c:\geccvfp\rst_dbf2.prg
Line number in the object source file= 56
Source line contents= COPY FILE &cDestination TO &lcdrive
----------------------------------------------------------
===============================Término=============================================