Answer the question
In order to leave comments, you need to log in
How to run for example expand.exe with parameters so that it returns the result to the DELPHI program?
Good day.
I am writing a program that should find out what is in the CAB file, and pull out some of these files from there.
Fortunately, expand.exe is a built-in program in Windows, I just copied it to the directory with my .exe file. In the vastness of the network, I found such options as ShellExecute, Winexec and CreateProcess, they all do what they need, but do not transmit the result back, i.e. in the simplest version, I need a list of files inside to get into the program after expanding expand to me. Has anyone struggled with this problem, how can it be solved?
And if this is not possible, how is it possible?
Answer the question
In order to leave comments, you need to log in
Solved with CreateProcess and PIPE. I can even show an example: u_ConsoleAppRunner.pas
Not strong in this area - but as an option - the result can be written to a file and then read out the file with the results.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question