I want to run a command from Delphi. I can do it using ShellExecute.
This is how I do it:
ShellExecute(0, nil, 'cmd.exe', '/c start http://localhost/ ', nil, SW_HIDE);
But I want do this without using cmd.
Is there any way to do it?
I want to run below command as well:
ShellExecute(0, nil, 'cmd.exe', '/c del RUNNING_PID', nil, SW_HIDE);
ShellExecute(0, nil, 'cmd.exe', '/c .\bin\posonline-phm -Dhttp.port=80 -Dconfig.file=.\conf\application.conf ', nil, SW_HIDE);