Possible Duplicate:
How to get the dos output. In delphi2009 with vista.
I am using Createprocess() in order to verify a certificate with openssl. I want to redirect the answer so that i don;t have to write it in a .txt and read it from there. I want to redirect it to a string directly. The basic code is the following:
CreateProcess(
nil,
'CMD /C C:\openssl\bin\openssl verify C:\myCA\Certificat.crt > C:\certificat\outdelphi.txt',
nil, nil,False,
CREATE_NEW_PROCESS_GROUP+NORMAL_PRIORITY_CLASS,
nil, 'c:\', ShowInfo, ProcInfo
);
Sleep(1000);
i don't want to use the >C:\certificat\outdelphi.txt. I want the output to be redirected to a string. How can i do it ?