How to pass flags (arguments) to an application

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Marcelo Arroyo

How to pass flags (arguments) to an application

Post by Marcelo Arroyo »

Hi everyone. I have a problem running a Windows appilcation with wine.
The application is a Acucobol program.
When I run "wine wrun32.exe myprogram" it works ok.
When I run "wine wrun32.exe -C config.cfg myprogram" wine says
myprogram doesn't exist.

Any help?

--
Marcelo Arroyo
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: How to pass flags (arguments) to an application

Post by vitamin »

Marcelo Arroyo wrote:When I run "wine wrun32.exe myprogram" it works ok.
When I run "wine wrun32.exe -C config.cfg myprogram" wine says
myprogram doesn't exist.
You sure that's Wine what tells you "myprogram doesn't exist"? Not the "wrun32.exe"?

Remember, if you specifying paths for windows programs, those paths have to be windows paths not UNIX. Ex:

Code: Select all

# wrong
wine wrun32.exe -C config.cfg /home/user/myprogram.exe
# correct
wine wrun32.exe -C config.cfg 'z:\home\user\myprogram.exe'
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

I have less problems with programs if i use the "start" command... I'm on Mac OS X but should be the same.

for example.
wine start /unix "/Users/doh23/Applications/MyGame.exe -windowed"

this makes sure the working directory is set over to that same folder and launches
User avatar
FatButtLarry
Level 3
Level 3
Posts: 70
Joined: Sat Feb 23, 2008 1:08 pm

How to pass flags (arguments) to an application

Post by FatButtLarry »

Instead of:

wine "C:\app.exe -flag"

have you tried:

wine "C:\app.exe" -flag

with the flag on the outside of the quotes?

-Tres

On Sun, Aug 9, 2009 at 1:10 AM, doh123<[email protected]> wrote:
I have less problems with programs if i use the "start" command...  I'm on Mac OS X but should be the same.

for example.
wine start /unix "/Users/doh23/Applications/MyGame.exe -windowed"

this makes sure the working directory is set over to that same folder and launches






--
- [email protected]
Locked