will this .bat file run OK in wine

Associate
Joined
28 Oct 2002
Posts
1,510
Hi

I have a game called Hearts of Iron 2 : Armageddon which i can play in Ubuntu through wine. There is a mod out for this game called TRP that i think just adds new text files that the main exe file reads - therefore i assume it should work ok.

As part of the install of TRP a .bat file is run that looks like this:

@Echo off

ren scenarios scenarios_old

ren scenarios_new scenarios

copy scenarios\data\*.* scenarios_old\data\*.*

move scenarios_old\data\*.* scenarios\data\

rd scenarios_old /s /q

rd ai /s /q

ren ai_new ai

del db\events.txt

rd db\events /s /q

del %0

will all these commands work? - only it looks like maybe only the ones down to "move scenarios" actually happened

also could someone translate what each of the lines means so i could try and do them manually - i assume rd is remove dir but what do:
/s/q
del %0
actually mean?

many thanks

Diss
 
can you get a windows command prompt? i'd imagine it's in the windows directory on your wine c drive? if you can change directory and run the batch file from within the command prompt. it should work that way. :)
 
damned cunning idea :D

i am downloading a non .exe version of the mod now that lets you run the .bat file manually and will give it a go

thanks

diss
 
hmmm
things not going smoothly - i get these messages:

[i was running it through a root terminal]

-----------------------------------------------------------------------------
Z:\home\voteslave\.wine\drive_c\Program Files\TRP\Doomsday>trp.bat
Invalid name

Path not found (lots of these)

db\events.txt : File Not Found
Path not found

Sharing violation

-------------------------------------------------------------------------

any idea what i am doing wrong or how to fix?

thanks

diss
 
Don't run it as root... or your .wine folder won't be found!! (i.e. /home/<username>/.wine would be /root/.wine)

There is no need to run wine apps as root - when you're running things in wine, everything is run as an admin in the virtual wine environment anyway. :)
 
Diss said:
also could someone translate what each of the lines means so i could try and do them manually - i assume rd is remove dir but what do:
/s/q
del %0
actually mean?
You're absolutely right - rd is remove directory and the others are pretty self explanatory.

/s /q is /s<equential> (think -r) and /q<uiet> IIRC

The "del %0" [I think] will delete the batch file after it has completed successfully.

:D
 
Back
Top Bottom