[fpc-pascal] run pascal programs as scripts

Darius Blaszyk dhkblaszyk at zeelandnet.nl
Thu Mar 31 11:06:28 CEST 2011


On Mar 31, 2011, at 10:37 AM, michael.vancanneyt at wisa.be wrote:
> Do yourself a favour, and use ExecuteProcess from the sysutils unit for your
> Exec routine. It has all you need. The use of pipes is not needed when
> running the program, it will only seriously slow the running of the program.
> 
> But do not replace the unix fpexecv call; There will always be a difference
> between Windows and Unix.

This simplifies things quite a bit. Thanks for the hint. Here's a new patch, I also added a fix for the command line options issue. Should be alright now. All examples work fine on win32.

Darius
-------------- next part --------------
A non-text attachment was scrubbed...
Name: instantfpc_win32_001.patch
Type: application/octet-stream
Size: 1177 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20110331/e3808460/attachment.obj>


More information about the fpc-pascal mailing list