The forum

Windows commandline parameter (MoHPA)

MoHPA

Author Replies
Marlowe Saturday 25 August 2012 at 3:14
MarloweAnonymous

How can i pass windows commandline parameters to an exe file

e.g.

"c:\\MOHPA.exe" +set ui_console 1

This would enable the game condole.

Which way i can add this to the pol Shortcuts?

Thank You

Phil
petch Saturday 25 August 2012 at 7:14
petch
Developer


Configure button > (select shortcut) > General tab > Arguments

"Arguments" seems to be the correct technical wording for it, but maybe it would be easier to find if it was called "Parameters"?

Looking for false friends, I've found "Leave the default location" (where should I go now? :P)
If you find other broken or at least non idiomatic wordings, feel free to report them...

Edited by petch

Marlowe Saturday 25 August 2012 at 10:56
MarloweAnonymous

Thank you. Yeah this should be the right one. In german-langpack it's really called parameter. It adds the parameter to the Shortcut-script.
But unluckily it does not really work.... perhaps i'll try different programms and functions
petch Saturday 25 August 2012 at 11:49
petch
Developer

Never heard of it not working though, so you must be doing something wrong.
Marlowe Sunday 26 August 2012 at 0:16
MarloweAnonymous

I think there is a little bug.
When i add the parameters, in the shortcut script it is savad in this kind
POL_Wine MOHAA.exe +set developer +set ui_console 1 +set cheats 1 +set thereisnomonkey 1 "$@"
That does not work.

If i change it this way:
POL_Wine "MOHAA.exe" +set developer +set ui_console 1 +set cheats 1 +set thereisnomonkey 1 "$@"
It will work. The exe should be in "marks".

Phil
petch Sunday 26 August 2012 at 0:23
petch
Developer

I don't see how it could make any difference, because they're only seen by the shell interpreter.