>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
You could always have the table open and do a COPY STRUCTURE TO your backup area WITH PRODUCTION. Then open the empty table you created and append from the original with a SCAN scatter memvar memo from the original file ENDSCAN
I am sure there are others who have a faster better method, but that is just off the top of my head.
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope