Thank you, it's working with the ShellExecute, but if I'm calling the second program with this function
FAQ102-6048:
I cant read the parameters (which are which file to open and which PATH)
Any help would be appreciated
Thank you for the fast reply but this function does not search the subfolders
I still need to know where to look for it and for every version of office it's been installed in different directory.
Hi
Does anyone know how can I find if Microsoft office installed in the computer and if yes where can I find it's PATH?
I need it so I could execute the Excel.exe for example.
Any help would be appreciated
I have 2 Delphi programs, I wrote them both.
Now, the first program calls the second one and tells it to do something (like push a certain button or read a string).
I don't have a problem to open the second program (with ShellExecute) and of I did it correct send it parameters.
The problem is...
I'm asking about the loaded program.
When it starts, how can I tell it has been started from the first program by ShellExecute command (and not by double click on the exe file), and how to receive the parameters that ShellExecute pass (as shown at the sample)
Hi
I have 2 programs which one opens the other with ShellExecute command.
For example
procedure Tform1.Button1Click(Sender: TObject);
begin
ShellExecute(0, 'open', PChar(ExtractFilePath(Application.ExeName)+'SecondProgram.exe'),
Pchar('Parameters to pass'), Pchar('Directory to pass')...
Hi
I have an external program which I run with a batch file from my program.
While the installation of the external program it has been added to the "PATH"
I would like to know how I could I read the PATH so I could tell if the program has been installed or not and give a warning if needed...
Hi
I'm using the WinExec command
PCommand := PChar(Command);
WinExec(PCommand,SW_HIDE);
and when the program is running under "Windows 98" every time I use it, it stays open and can be close only by close program session (ctrl + alt + Delete)
so my questions are...
Hi Andrew
Well the thing I'm trying to do is to make an Editor window for C programming, and I would like that words like "if" and "while" and so long will be bold or in different color.
Thank you towerbase for your help.
Eventually I haven't used your suggestion, I've found out that the print dialog makes problems only when it been place at fsMDI child or form so I shift it to new normal form and called it from there.
But anyway thanks for your help
Elad
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.