USE COPY FILE TO to copy individual files. You may want first use ADBOBJECTS() to get the names of all tables in the DBC first to make sure you copy them as well. You can then switch the extensions to copy memo and index files (test if they exist first) or just use wild card copies like COPY FILE TO
HTH
Mike
>We want to programmatically copy a database from one location to another. > >We curently use the COPY TO command to copy the tables to different directories. How can we copy a DBC and it's files to different directories?
Michael P. Antonovich, MCSD Email:mike@micmin.com MicMin Associates - Orlando, FL