Xn Nooby
2006-Jul-13 07:51 UTC
[Wine] How do I pass parameters to my program when using WINE?
Hello, I'm trying to figure out the proper way of passing parameters to my program that is being run by WINE. I've been trying different things I've found in Google, but none have seemed to work yet. The parameters work in a Windows environment, so I do believe the program is okay. This is on a SUSE/SLES 9 machine using WINE .917. If I want to pass the parameter "/SLEEP:10" to a program called "myapp.exe", how would I do it? I've found and tried the following formats, and none have worked so far: wine myapp.exe /SLEEP:10 wine /full/path/myapp.exe /SLEEP:10 wine "/full/path/myapp.exe /SLEEP:10" wine myapp.exe -- /SLEEP:10 wine myapp.exe -- myapp.exe /SLEEP:10 I've seen the "--" in many examples online, but have not found it in the documentations so far. Some of what I've read indicated that BOTH wine and my program would try to use ALL the parameters, except for the ones that come after the "--" (which would only go to my program). Any suggestions? thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.winehq.org/pipermail/wine-users/attachments/20060713/ff37818e/attachment.htm
Daniel Skorka
2006-Jul-13 08:10 UTC
[Wine] How do I pass parameters to my program when using WINE?
Xn Nooby <xnooby@gmail.com> wrote:> wine myapp.exe /SLEEP:10This should work. Maybe try $ wine myapp.exe "/SLEEP:10" to avoid trouble with the shell. Daniel
Xn Nooby
2006-Jul-13 13:07 UTC
[Wine] How do I pass parameters to my program when using WINE?
I wrote a small C program that lists the command line arguments given to it, and it showed that the arguments *were* being supplied to my porgram. So the syntax I had been trying, and the one you gave me, are probally all correct. My problem is within my program, so I am looking in to that some more. Thanks for the help, glad to see I was on the right track with the syntax. On 7/13/06, Daniel Skorka <skorka@gmx.net> wrote:> > Xn Nooby <xnooby@gmail.com> wrote: > > wine myapp.exe /SLEEP:10 > > This should work. Maybe try > $ wine myapp.exe "/SLEEP:10" > to avoid trouble with the shell. > > Daniel > _______________________________________________ > wine-users mailing list > wine-users@winehq.org > http://www.winehq.org/mailman/listinfo/wine-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.winehq.org/pipermail/wine-users/attachments/20060713/6658770c/attachment.htm
Uwe Bonnes
2006-Jul-13 17:19 UTC
[Wine] How do I pass parameters to my program when using WINE?
>>>>> "Xn" == Xn Nooby <xnooby@gmail.com> writes:Xn> I wrote a small C program that lists the command line arguments Xn> given to it, and it showed that the arguments *were* being supplied Xn> to my porgram. So the syntax I had been trying, and the one you gave Xn> me, are probally all correct. My problem is within my program, so I Xn> am looking in to that some more. Thanks for the help, glad to see I Xn> was on the right track with the syntax. Try to understand how the command line handles the special characters and learn how to escape them. E.g. to give a backslash "\" to the Windows program, write "\\" Bye -- Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------