i don't believe you can change the caption of a dosbox window, the default caption is the comspec enviroment string
i expect it would be possible using apis