Command-Line – How to Execute .bat File on Ubuntu 11.04

11.04command lineinstallation

I have a setup.bat file which install some applications and i want to execute it.

This is content of .bat file :

@echo off
cls
Rip_7z.exe x Rip0.7z
cls
del Rip0.7z
cls
Rip_7z.exe x Rip1.7z
cls
del Rip1.7z

I think the Rip_7z.exe file extracts the Rip0.7z and Rip1.7z files and builds the app.

How can I do this in the Ubuntu 11.04 Terminal?

Best Answer

You can run DOS batch file through wineconsole:

$ cat ~/.wine/drive_c/file.bat
@echo off
echo Working
pause
$ wineconsole 'C:\file.bat'

You get a new windows similar to this

enter image description here

Also, you can enter an interactive DOS prompt with

wineconsole cmd

You will get:

enter image description here