How do I create a folder format?

Have a look at the FAQs. In particular, the Folder Formats: Detailed Guide entry.

Regards, AB