Thanks Rob, I'll take a look at that link and see if it does the job for me.

-Rich

 
Sincerely,
Rich Cooper
EnglishLogicKernel.com
Rich AT EnglishLogicKernel DOT com


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Rob Cameron
Sent: Thursday, June 11, 2009 7:06 AM
To: [email protected]
Subject: Re: Add *.exe programs into a main program

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 -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to