Actually, with how complex the ini files in mame have become this is harder than you think. Since you have have a configuration ini file for each game, and game types.
I have a horizont.ini, vertical.ini (I put those in), vector.ini, rastor.ini, pong.ini, bzone.ini, warlards.ini, and I am trying to put in button#.ini.