Commandline component

Is there a command line execution component around?

Use case

  1. I am trying to convert the HTML part of an email to PDF and attach it to Mysql Record
  2. My generic email server (as an option) saves just the html in a separate file email.html
  3. I then want the project’s email parser to convert it to a pdf. If it fails, I want it to attach the html instead.
    • I want to call a batch file so that any converter can be used in the future
    • I am going to start by trying to use chrome - headless
    • I can save the error in a file, but I really want the error back in Delphi.

Have you seen DOSCommand?
I think it may be on Getit

1 Like

Why would you need a component for that?
You can always access command line parameters with ParamStr. You have full control in your application what to do with that info (aka if/what forms/errors to show, and what to output to the system console).