问题描述
我有一个命令行可执行文件,改变了我想从我的程序使用的文件中的一些位。
是否可以创建使用此工具并只分发一个可执行文件的自己的可执行文件?
I have a command line executable that alters some bits in a file that i want to use from my program.Is it possible to create my own executable that uses this tool and distribute only one executable?
[edit]澄清:
命令行工具在给定文件中获取偏移和一些位,并更改此偏移处的位。所以我想为一个应用程序创建一个修补程序,将特定的位更改为一个特定的值,所以我可以做我写一个像批处理文件,但我想创建一个可执行文件,即嵌入工具
The command line tool takes an offset and some bits and changes the bits at this offset in a given file. So I want to create a patcher for an application that changes specific bits to a specific value, so what I can do i write something like a batch file to do it but i want to create an executable that does it, i.e. embed the tool into a wrapper program that calls it with specific values.
我可以在(windows)中编写wrapper c \ c ++,asm但不要.net。
I can code wrapper in (windows) c\c++, asm but no .net please.
推荐答案
比起编写包装器,滚动自己的程序更容易;它听起来像是微不足道 - 只是打开文件,寻找到正确的位置,写你的位,关闭文件,你完成了。
It would be easier to roll your own implementation of this program than to write the wrapper; it sounds like it is trivial -- just open the file, seek to the right location, write your bits, close the file, you're done.
这篇关于组合两个可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!