Hi Ron!
I'm not too sure if it helps or not, but I use the following routine to run
an exe program that takes 2 parameters. Feel free to hack it if its what
you need (this runs ok on NT systems - dont know about 95 OS's though).
Note that this launches the AILINK program - its not run in the background.
Regards,
Geoff.
procedure TLeases.SpeedButton17Click(Sender: TObject);
var st:array[0..100] of char;
p:pchar;
i,n:integer;
begin
if not fileExists('C:\Program Files\Ausinfo\AILINK.exe') then
begin
showMessage('Your PC is not setup for AusInfo - see IT fast...')
end else
begin
st:='C:\Program Files\Ausinfo\AILINK MAPINFO ';
n:=length('C:\Program Files\Ausinfo\AILINK MAPINFO ')-1;
for i:=1 to length(serviceNumber) do
st[n+i]:=serviceNumber[i];
p:=st;
winExec(p,sw_showNormal)
end
end;
Ron
> My case I am trying to run a ff routine from outside of FF from another
> source.
If you are trying to see what parameters were passed look at paramcount and
paramstr.
John
So, the problem is not how to pass the parameters, but how to access
them from inside your Delphi program? If so, John Hay's suggestion to
look at paramcount and paramstr is correct.
--
David Marcus
I am looking for how to pass a parameter to a compiled Delphi routine
similar to
PRJTEST.EXE PARAM1 PARAM2
I am trying to run a background process that updates a table when you
perform certain inputs to a main table.
Help or pointing in the right direction would be appreciated.
Ron Dolce
Quantum Business Computers
And you should be able to do it with ShellExecute ... you should be able
to find info on that in the Windows Api ..
What do you mean by "inside" and "outside"?
--
David Marcus