marcostT
marcostT

Reputation: 563

Integrate scripts into delphi

How can I execute an external script in Delphi (like wsh, vbs, bat...) and get back the result? I want to launch them as task within a thread do other things and when the result is ready the scripts itself will inform the application which will receive it in main thread. How to achieve that?

Upvotes: 5

Views: 2421

Answers (4)

Remy Lebeau
Remy Lebeau

Reputation: 596352

Use Microsoft's Windows Script COM interfaces, in particular the IActiveScript interface.

Upvotes: 7

Hugues Van Landeghem
Hugues Van Landeghem

Reputation: 6808

Fast Report have Fast Script used in their famous reporting Fast Report

TMS software also have TMS Scriptor studio and TMS Scriptor studio pro

Upvotes: 1

Brian Frost
Brian Frost

Reputation: 13454

I suggest Delphi Web Script (DWS). This is excellent and aggressively updated by Eric - see his blog.

Upvotes: 3

Andreas
Andreas

Reputation: 1364

You mention a lot of different script languages and engines in your question. They have all different possibilities. If you are free to choose your script language i would suggest two approaches:

  1. Have a look at http://www.scalabium.com/smscript.htm they have a nice component to execute a script (VBScript, JavaScipt) and get the return value.

  2. Have a look at http://www.remobjects.com/ps.aspx RemObjects Pascal Script, this is a very powerfull script language and there are plenty of examples around.

Upvotes: 3

Related Questions