How to execute commands using Free Pascal/Lazarus

You can execute OS commands in Free Pascal / Lazarus by using TProcess component that exists in System component palatte. TProcess also can open external applications from your Lazarus project. Example: 1. Create new application, put Edit box, a button, TProcess and a Memo in main form: 2. Change UsePiples property to True in TProcess.Options.…