hello list,
I want to start a Win98 program from within another program. I tried to do this with TProcess, but TProcess.Create raises an exception ..
this is my code:
procedure StartProgram(ACommandLine: String);
var
MyProcess: TProcess;
begin
try
MyProcess := TProcess.Create(ACommandLine, [poExecuteOnCreate]);
except
on E: Exception do Log('StartProgram Create ' + ACommandLine + ': ' +
E.ClassName + ' ' + E.Message);
end;
..and the log file output is:
0 StartProgram Create C:\IOS.Exe: EINOUTERROR File not open
The file C:\IOS.Exe exists, and can be started manually .. am I doing something wrong?
thank you,
Anton.
