Embedding an exe with your program
Posted: Sat Dec 08, 2007 4:05 am
There are a few posts on this but I didn't find any of them to be very clear. Here is a simple example of how to embed an exe with your program and how to run it.
Code: Select all
If OpenFile(1,"File.exe")
WriteData(1,?File,?FileEnd-?File)
CloseFile(1)
EndIf
DataSection
File:
IncludeBinary "File.exe"
FileEnd:
EndDataSection
RunProgram("File.exe")