I would like to include a file name “7zip.exe” inside a visual project in order to use it in my code.
My code:
I scan a folder, for each file use “7zip.exe” to extact data. I don’t use(zlib & libzip too painfull on windows).
I think I find an ugly way, put a hexa dump of “7zip.exe” , puts it into a header (tmp.h) and after to write a file with the dump.
If you add a better idea,..
Thanks.
You can embed a EXE in a resource, extract and execute it. Keep in mind that an EXE may have dependent DLLs.
Embedding an external executable inside a C# program
However, I would suggest you look at the 7Zip DLL instead (also available from 7-zip.org).