I'm not 100% clear about what exactly you want to do, but perhaps the Exemod
library from Gwen Carpenter might be helpful:
http://www.torry.net/authorsmore.php?id=3984
It allows you to insert files within files, etc. So you might be able to add the exe into your own app, then at run-time
extract it, save it, run it, delete it. Maybe.
Warnings though: (1) Exemod is no longer supported; (2) It *will* fail when used with D2009 because it uses non-unicode
strings; (3) there can be problems running apps from a CD - I had this problem when I wrote a small installer using
Exemod (however this is described in the Exemod source - it's a known problem).
Apart from that I have found it very useful indeed.
Rob
I've found an *.exe file that runs (D7 / Vista) in DOS mode like a batch
file command. When running, it gives a prompt and stops.
1. I could execute it as a batch job and pipe the input and output, if I
can figure out how to do that in old DOS command language.
2. But that would mean loading the *.exe for each call, executing it,
managing the interface pipes and process contexts; Isn't there a way I can
put it into my D7 source program as a resource of some kind, or load it once
and link it up that way somehow? If it would only load once, when the
program starts. Each time the *.exe runs, it could make a copy of itself to
run and destroy the answer when completed.
Suggestions appreciated,
-Rich
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi