Solved

executeandwait function for FPC

Posted on 2008-10-23
2
503 Views
Last Modified: 2013-12-13
Does anybody know if there exists an 'executeandwait' function written for FreePascalCompiler? For Delphi I found several of these functions on the internet, for FPC none.

It is needed to execute another program in batch mode while running my FPC-written program.

Thanks in advance!
0
Comment
Question by:EXF_Pilatus
  • 2
2 Comments
 
LVL 28

Accepted Solution

by:
2266180 earned 500 total points
ID: 22785919
here is the tutorial on it: http://wiki.lazarus.freepascal.org/Executing_External_Programs (you will use the TProcess approach and use poWaitOnExit )
0
 
LVL 28

Expert Comment

by:2266180
ID: 22786538
Why a B grade? see grading tips here: http://www.experts-exchange.com/help.jsp#hi403
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

If your app took Google’s lash recently, here are the 5 most likely reasons.
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The viewer will learn how to set up a document for the web and print and the recommended PPI for printing.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now