Is there a way of easily converting to / from the various database types without using dbbuilder?

I want to create my own tool that'll allow multiple names folders to be converted to/from MSSQL, and that will also allow a single button conversion to/from mssql.
If possible, I also want the option to create the new database in a separate folder.

I reckon I could create one using .DEF files, but wondered if anyone else has tried this and has a solution.