How to run a batch (.bat) file on Ubuntu using Wine (with complete steps)?

I have this old Windows game with a .bat file which doesn't open with Wine and only opens as a text file. I have browsed through and tried several suggested ways of opening it with Wine console without any success. Many other methods are either too complex or coded for a layman like me to understand. So, can someone please provide a simple step-by-step guidance on this? Thanks in advance.

0

2 Answers

The solution by OP

  1. Install Wine & configure it to relevant Windows version for game

  2. Open Gedit (notepad of Ubuntu)>Edit>Preferences>Plugins>select 'External tools execute external commands shell scripts'>Close

  3. Go to your .bat file>right click>Properties>Permissions>select 'allow executing file as program'>Close

  4. Double-click the .bat file, it will open in gedit>Tools>External Tools>Run command>in the popped up box type 'wineconsole cmd' (without inverted commas)>OK. 5. A Wine console terminal will pop up, in it type 'start yourfilename.bat' and hit enter. That'll run it.

I had the same problem but I solved it with wine. When you got your .bat file you have to right click on it en go to properties. Then click on 'open with' then select wine.(if you already downloaded wine) And then click on 'set as default' and you are finished. (you can download 'configure wine' in 'ubuntu software'.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like