lcPay_Dbf = "\data\PR"+RIGHT(DTOS(DATE()),6)+".dbf" COPY FILE payroll.dbf TO (lcPay_Dbf)Note that the extension must be included, and that this only copies the .dbf, not the .cdx or .fpt. Those have to be copied separately.
lcPay_Dbf = "\data\PR"+RIGHT(DTOS(DATE()),6)+".dbf" SELECT payroll COPY TO (lcPay_Dbf)This includes all relevant files (.fpt and .cdx).