I am trying to set up a macro that creates a new database in a chosen folder.

I am using the macro RunCommand and the command NewDatabase. When it runs it opens the My Documents folder and has the new database name as db1. Which is fine, but the new database isn't save when I reopen the folder.

Is it possible to create a new database with this macro?