Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-01

Exec without DOS console

5 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Danuta Burnicka

Hi,
I need a program which only execute another application and I wrote the following one.

Program Acrobat;
uses Dos;
begin
 Exec('AcroRd32.exe','');
end.

If I run this program the DOS console is openning
and it is closing after I close Acrobat Viewer.
What I have to do that DOS console wouldn't show.

Danuta Burnicka

Okresl Swoje potrzeby - my znajdziemy oferte za Ciebie! [ http://oferty.onet.pl ]

Reply by email

Pierre Muller
to Danuta Burnicka
Danuta Burnicka wrote 13 lines
Hi, I need a program which only execute another application and I wrote the following one. Program Acrobat; uses Dos; begin Exec('AcroRd32.exe',''); end. If I run this program the DOS console is openning and it is closing after I close Acrobat Viewer. What I have to do that DOS console wouldn't show.

Do you know
-WG option?
Did you try it?
It should solve your problem.

Reply by email

Marco van de Voort
to Rimgaudas Laucius: Use windows api functions. A.e. WinExec, CreateProcess (unit windows, see documentation).
Show quoted text 5 lines
> Hi, > I need a program which only execute another application and Use windows api functions. A.e. WinExec, CreateProcess (unit windows, see documentation).

Also check the JCL on www.delphi-jedi.org

Getting some routines to work out of the (delphi orientated) JCL might be less work than trying to figure out M$ Api :-)

Reply by email

Keith Bowes
to Rimgaudas Laucius

From: "Rimgaudas Laucius"

Show quoted text 5 lines
Use windows api functions. A.e. WinExec, CreateProcess (unit windows, see documentation).

There's also a TProcess class (in the unit Process) that is easier to use than the Windows units' CreateProcess function.

Reply by email