To run a CMD command, you need to use the
/C flag of cmd.exe :
However, this will create two different sessions, so it will not work. But you can use ShellExecute to run appname.exe directly, like so:
But you need to specify the filenames properly.I would do
in case appname.exe is the current application. Otherwise, replace Application.ExeName with the full path of appname.exe . |
Friday, April 27, 2012
Run command line from delphi
Labels:
Delphi