calling an exe in TPW1.5

I would like to call an exe file within my program (exe located on public dir in a server).  What are all the necessary declarations and proper syntax to call this exe?  Thanks.
bytemesbhAsked:
Who is Participating?
 
pobwestCommented:
To run an apllications using TPW 1.5 you have to use the command Winexec in the Winprocs unit.

Heres a sample program to run a specified file:

program Run;
uses winprocs;
begin
  winexec('c:\windows\calc.exe',1);
end.

Look in the help file for more syntax options, ie maximise on running, etc..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.