Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi with perl

Status
Not open for further replies.

hagbardc

Programmer
Mar 13, 2002
4
US
So, I have a Delphi application that I've been using for a while. I want to modify it to use a small program that I have written in Perl. Is there any way for me to call a perl program from a Delphi app? I don't even need to get information back from the perl prog - I just need to be able to give it the name of a file.

I also have the perl prog as an .exe file. If I can't call the perl source directly, could I execute this .exe?

TIA -

hagbardc
 
Use this code...

uses ShellAPI;

ShellExecute (Handle, 'open',
'c:\perlscript.pl', nil, nil, SW_SHOWNORMAL);

The Perl script will work since the Perl interpreter is embedded in the script or you can launch your exe with the same code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top