Skip to main content

Posts

Showing posts from February, 2015

Open / Run .bat file on Ubuntu Machine (DOS emulator set default application)

This is a quick procedure on how to run your batch file in Ubuntu Base Machine. (I assume you already have a .bat file.) Install DOS emulator. sudo apt-get update sudo apt-get install dosemu Make DOS emulator to be listed on Default Application List by editing the dosemu.desktop file. sudo gedit /usr/share/applications/dosemu.desktop Find the "Exec" variable (i.e, Exec=/usr/bin/xdosemu). Append these characters " %f" at the end of the line (i.e, Exec=/usr/bin/xdosemu %f). Save the document. Set DOS emulator as a default application for your .bat file. Right-Click .bat file Select Properties Click "Open With" Tab Select "DOS emulator" from list Click "Set as default" Close the properties window Double-Click your .bat file and you should see that it is run by Dos Emulator.