It has a slight problem, it creates all tables in one folder, if you have structured your DBC and DBFs in directories, that is lost.
There is a cummunity edition gendbcx, I actually don't know if it still fixes some issues, but surely not that of the folder. Anyway, doesn't matter, if you just pick out some code.
There is one obvious other solution: Copy files and ZAP. Most easy with free dbfs. Not so easy with DBFs pointing to DBCs, as the DBCs also need to contain some meta data.
But there still is one very easy way: COPY TO dbffile with it's optional DATABASE clause and several others ("NAME ..." for long names, and/or "WITH CDX" to copy indexes). I use COPY TO ...needed clauses... FOR .F. to create empty copies of very large tables, and that works easiest.
Edit: There is one tricky thing to do, if you want to copy the structure of a very large table: USE thetable.dbf, then GO BOTTOM, then COPY TO file REST ...needed clauses... FOR .F. -it's the REST clause making it a fast copy, rushmore seems to fail to optimize FOR .F. in this case, or I just did it for making sure it'll work fast.
Bye, Olaf.