>i want to copy the structure of my table arinv to a new table called arinv_archive
copy next 0 to mytable with cdx [database "dbcname here"]
If you include the database clause, it will also copy long field names, but not the RI code, field comments etc.
If you want these extended things, you may run home()+"tools\gendbc\gendbc" and then edit the code it produces. It will create one procedure per table/view, so you can pretty much pick which one you want and then change the table name. The generated procedure contains commands to reproduce all the extended settings. Two caveats here: 1) won't work if the target table isn't a part of a database, 2) the generated code behaves badly with paths, it either generates full paths or no paths at all, depending on version. You may just go to the directory where the tables are and run it there, or adjust the paths in the generated code to be relative to where the code is run from.