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?
You can run DOS batch file through
wineconsole
:You get a new windows similar to this
Also, you can enter an interactive DOS prompt with
You will get:
You have to run it through cmd eg.:
wine cmd /c setup.bat
Firstly, Wine won't touch batch files.
Why do you have to do it in a terminal? Just open the directory with naultilus, right click the
.7z
files and extract. But if you want to do it the hard way, the appriximate conversion of that script is:A protip for next time: Try not to announce you're downloading pirated material, in a public forum. It might come back to bite you in the arse one day.
Save this as setup an run it by typing
bash setup
, and then hitting enter.