Page 1 of 1

Execute file command

Posted: Wed Jun 08, 2011 10:55 am
by mol
Hi!
I want to run setup program eg. f4setup.exe and paste command line parameter /dir="c:\f4" to it.
When I try:

Code: Select all

EXECUTE FILE 'f4setup.exe /dir="c:\f4"'
nothing happens.
When I execute program without parameter:

Code: Select all

EXECUTE FILE 'f4setup.exe'
f4setup.exe is executed.

What's going on?
Does anybody have idea how to paste command line parameters to EXECUTE FILE statement?

best regards, Marek

Re: Execute file command

Posted: Wed Jun 08, 2011 11:39 am
by gfilatov
mol wrote:Hi!
I want to run setup program eg. f4setup.exe and paste command line parameter /dir="c:\f4" to it.
When I try:

Code: Select all

EXECUTE FILE 'f4setup.exe /dir="c:\f4"'
nothing happens.
When I execute program without parameter:

Code: Select all

EXECUTE FILE 'f4setup.exe'
f4setup.exe is executed.

What's going on?
Does anybody have idea how to paste command line parameters to EXECUTE FILE statement?
Hi Marek,

Did you tried

Code: Select all

EXECUTE FILE 'f4setup.exe' PARAMETERS '/dir="c:\f4"'
:?:

Re: Execute file command

Posted: Wed Jun 08, 2011 7:21 pm
by mol
thanks Grigori!
I didn't found this syntax...
I've used _execute function