Solved

calling an exe in TPW1.5

Posted on 1998-11-19
1
461 Views
Last Modified: 2008-02-01
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.
0
Comment
Question by:bytemesbh
1 Comment
 

Accepted Solution

by:
pobwest earned 100 total points
ID: 1216140
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

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
This article describes how to reset your Windows 10 password when you've forgotten it.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question