Contents
Batch files can be run by typing “start FILENAME. bat”. Alternately, type “wine cmd” to run the Windows-Console in the Linux terminal. When in the native Linux shell, the batch files can be executed by typing “wine cmd.exe /c FILENAME.
How do I run a batch file in Terminal?
Executing Batch Files
- Step 1 − Open the command prompt (cmd.exe).
- Step 2 − Go to the location where the . bat or . cmd file is stored.
- Step 3 − Write the name of the file as shown in the following image and press the Enter button to execute the batch file.
How do I run a .bat file in Ubuntu?
The solution by OP
- Install Wine & configure it to relevant Windows version for game.
- Open Gedit (notepad of Ubuntu)>Edit>Preferences>Plugins>select ‘External tools execute external commands shell scripts’>Close.
- Go to your .bat file>right click>Properties>Permissions>select ‘allow executing file as program’>Close.