Enslaved is right. The “expert settings” are actually nothing more than the dosbox.conf file. Head to the “autoexec” section at the bottom and place your autoexec commands there. Be aware that you’ll have to configure everything else (mounting, sound, cycles, etc) through expert settings, too. The Magic Dosbox UI settings will be overridden by expert settings!