>>I need to copy DBFs / CDXs / FPTs from one directory to another (for backup purposes). The VFP command COPY FILE fails if the table is open. I am currently shelling to DOS and using the COPY command (in DOS) which works even when the table is open, but I would rather not shell out to DOS. Are there any alternatives? I also don't want to resort to ActiveX controls.
>> Thanks, Chaim
>
>Chaim,
>
>I haven't tested this, but perhaps one of the scripting objects (such as the Shell.Application) might work.
Or SHFileOperation() (see the API section.)