Hah! You've just described my childhood, hacking autoexec.bat and config.sys to get games to work. Each game needed a different hack. Had no idea what I was doing back then, it was more a case of discovering the correct incantation until stuff worked without the graphics juddering too badly.