I am trying to run a SteamCMD command with delphi. What I want to do is is to put the command in a TEdit and retrieve the output in a TMemo. I have tried finding a log file in steamcmd that outputs everything but cannot find it. What I tried doing was
procedure Tfrmmain.runcommandClick(Sender: TObject);
var
command : String;
begin
command := edtcommand.Text;
ShellExecute(0, nil, 'steamcmd/steamcmd.exe', PChar('/c ' + command), nil, SW_HIDE);
Sleep(1000);
memoutput.Lines.LoadFromFile('output.txt');
end;
The SteamCMD.exe file is in a subfolder in the project folder.
But as you know there is no output file that I could find to load from. Is there anyway I can do this?
This is the design of the Form if it helps to understand.