Execute file command

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Execute file command

Post 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
User avatar
gfilatov
Posts: 1116
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: Execute file command

Post 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"'
:?:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Execute file command

Post by mol »

thanks Grigori!
I didn't found this syntax...
I've used _execute function
Post Reply