Topic: Try to run an external program with parameter

I'm tryin to run an external program that need to get a parameter to run.
When I use:

OpenFile('c:\SmsSender.exe');
The program run but without the parameter

when I try this:
OpenFile('c:\SmsSender.exe','05455555');

or this:
OpenFile('c:\SmsSender.exe 0545555');

the program don't run.

Thanks

Re: Try to run an external program with parameter

Hello itzik.bereby

Maybe you could you follow this example ?
Here the project send a mail but adapting it

JB

Post's attachments

Attachment icon SEND MAIL.zip 333.45 kb, 539 downloads since 2016-11-10 

Re: Try to run an external program with parameter

Hi,
This example can't help me.
I need to run External program with parameters, the example use an  internal command

Re: Try to run an external program with parameter

I found in the forum this post from Dimitry. See if this works.

OpenFile('params','x.exe');

Re: Try to run an external program with parameter

Hello itzik.bereby

Did you inverse your syntaxe ?

OpenFile('params','x.exe');

First your parameter then name of launcher program

What is 05455555 ?

Otherrwise, does your app possess  the SEND_SMS permssion enabled ?

JB

Re: Try to run an external program with parameter

Hi,
Thanks to all,
the right syntax is OpenFile('params','x.exe');