Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Bat file is following :

 @echo off
uharc x data.uha
call restore.bat
startw unpack.exe /nh
startw inject.exe "streams.wav"
startw regsetup.exe
del data.uha > nul
del uharc.exe > nul
del startw.exe > nul
del inject.exe > nul
del restore.bat > nul
echo -------------------------------------------
echo All Done. <<<---- GNdH ---->>> 
echo -------------------------------------------

So what I have to do to make it able to install this game? And any tips if possible?

I have tried stuff on it, I have got other bat files running like tekkit server bat. But I can't think of anything I could do on it. Is there any program other than wine/crossover that could run it?

When I use wine cmd it gives "application could not be started."

By renaming it to .sh I managed to get 5 or 6 sentences on it, but it still closes after half a second, like normally without changing anything.

share|improve this question
    
What program are you trying to install? –  Flimm Feb 1 '13 at 11:02
    
Hitman 2 Silent Assasin cracked version,(non topic(i bought Hitman 5 for ps3 3 days ago for ps3) –  user126336 Feb 3 '13 at 15:20

1 Answer 1

You can't just "convert" this to a shell script, it calls other batch scripts, and exe files, which are Windows applications and not runnable under linux (or any other OS than windows for that matter).

The only way is to run it under Wine, which emulates a Windows environment.

Run the Wine windows console:

wineconsole cmd

And in this console, go to the path of the batch file and execute it:

cd path\to\batchfile
batchfile.bat
share|improve this answer
    
Thanks it worked. –  user126336 Feb 3 '13 at 15:28
    
@user126336 Then you should set this answer as your accepted answer. –  Eric Carvalho Mar 2 '13 at 13:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.