Board index » delphi » Win 1.5 pascal - Executing a program

Win 1.5 pascal - Executing a program

How do you execute a program within pascal Win 1.5.

When I use pascal 3.0 the setup is

begin
assign ('res.com',res);
execute(res);
end;

How do you do it in Win 1.5

thanks

 

Re:Win 1.5 pascal - Executing a program


Quote
Dmhusa wrote:

> How do you execute a program within pascal Win 1.5.

> When I use pascal 3.0 the setup is

> begin
> assign ('res.com',res);
> execute(res);
> end;

> How do you do it in Win 1.5

> thanks

Try WinExec().

--
Fachhochschule Harz             Economics Dept.
Holger Schaefer, Dipl. oec.     Research Associate
mailto:hschae...@fh-harz.de        Phone: +3943-659-210
http://www2.fh-harz.de/~hschaefer

Re:Win 1.5 pascal - Executing a program


In article <1998061104250200.AAA13...@ladder03.news.aol.com>,
   dmh...@aol.com (Dmhusa) wrote:

Quote
>How do you execute a program within pascal Win 1.5.

Hi, try the WinExec function:
WinExec('c:\mydir\myapp.exe',sw_Show);

For more deitails see online help.

Bye bye
- Ulli -

===
"On no account allow a Vogon to read poetry at you!"

Ulli Conrad
ucon...@gmx.net
http://www.gwdg.de/~uconrad1
Public PGP-Key at http://www.gwdg.de/~uconrad1/upgpkey.asc

Re:Win 1.5 pascal - Executing a program


Quote
Dmhusa wrote:
> How do you execute a program within pascal Win 1.5.
> When I use pascal 3.0 the setup is

> begin
> assign ('res.com',res);
> execute(res);
> end;

> How do you do it in Win 1.5

You can use WinExec() or ShellExecute().

uses WinProcs, WinTypes;
begin
  WinExec('res.com',SW_SHOWNORMAL);
end.

Andras

Other Threads