I am trying to use cmd from Delphi to apply some commands. I use following code
ShellExecute(Application.handle, 'runas', 'cmd.exe',
PChar('/c command to do '), nil, SW_show);
I want to run more than one command in the same execution, for example
/c command1 command2 command3
I already made a bat file to run some commands. But I don't like the idea of storing a bat to my project. Can I apply more than one command in one execution? Can this be done?