I did this with Battle Chess because it's what I had. Sorry batteries (game) not included. (use google..sorry that is just how it works)
Ok so I got it to work. Not the best way but it works. In windows it pops up three console windows..but it works.
In Windows make a folder on your C:\ drive and name it dosgames. Place the two files in the dosgames folder.
In Linux make a folder called "games" in your /.dosbox folder. Put the two files in the /.dosbox/games folder.
Grab Battle Chess and when you unzip make sure the folder name is "Battle Chess". Put that in your "dosgames/games" folder. Then in attract mode Make a new emulator config. (TAB -> emulators->add emulator) Now set up your config. Point it to your dosbox "exe's". Next command arguments set it to [romfilename] Then set your path (Windows: C:\dosgames) or (Linux: /.dosbox/games) Last have it look for (".bat" for windows) or (.sh for linux) for your extension.
I'll see if I can "clean up" the windows side. Linux comes up clean. *shrugs*
Tested on windows XP SP3 32-bit and linux *untu 64-bit.
Seeing as how there are few games that would work in a cab the list of configs should not be too long. I am willing to work with some of you to make a bunch of configs to be used with attract mode if the programmer/developer would like to include them in with the program..or as a separate download "package". (It would at most, I think ,be an extra megabyte added to the attract binary/deb) Anyone got a better idea or want to help let me know!
Test please