1 1 Vote

Delphi: Start other Application

Tip by Delphian | 06/05/2013 at 12:13

Today, I would like to show you how to start another program from your Delphi application. For this, you need nothing more than the ShellExecute command:

uses ShellApi;

...

ShellExecute(0, 'open', 'c:\prog.exe', nil, nil, SW_NORMAL);

Simply swap "c:\prog.exe" in this function with the path and the filename of your program, you would like to execute. And don't forget: You have to add "ShellApi" to the uses clause.

Pass Parameters

How to pass some parameters to the external program when starting, you can read in my tip Start external program with parameters. Enjoy starting programs!

ReplyPositiveNegative

About the Author

Avatar AuthorThe author has not added a short description to his profile yet.
Show Profile | Message

 

Related Topics

Delphi: Rename Folder
Tutorial | 0 Comments
Delphi: Play System-Sounds
Tutorial | 0 Comments

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own articles on askingbox.com. How to do.