DECLARE LONG CopyFile IN WIN32API STRING lpExistingFileName, STRING lpNewFileName, LONG bFailIfExists
lnRetval = CopyFile("c:\autoexec.bat", "d:\autoexec.bat", 1)
IF lnRetval = 1
MESSAGEBOX("File Copied"

ELSE
MESSAGEBOX("Error"

ENDIF
-----------------------------------------------------
Note that the native COPY FILE takes less programming.
COPY FILE fromFile toFile
REMEMBER TO ADD FILE EXTENSION AND AS TEXTS (EXAMPLE fromFile = "MyDBF.DBF" etc.) WildCard characters will not function ... Caution !
-----------------------------------------------------
You can also use the run command and do the native OS command
Example: RUN XCOPY fromDir toDir /s
-----------------------------------------------------
ramani
ramani

(Subramanian.G)
FoxAcc
ramani_g@yahoo.com