从 C# 代码调用 Babel .Net Obfuscator
我有一个 C# WinForms 应用程序,用于为我的应用程序创建软件补丁。
注意到 Babel .Net 包含 Babel.Build.dll 和 Babel.Code.dll
有没有一种方法,在我的 C# 代码中,我可以调用 Babel .Net,
如下所示:
ExecuteCommand(C:\Program Files\Babel\babel.exe "C:\Patch\v6\Demo\Bin\Lib.dll" --rules "C:\Patch\babelRules.xml", 600)
这是一个在 C# 中执行 CMD 提示符的通用脚本。但是,如果我只是将 Babel.Build.dll 包含在我的 winform 中,我也许能够无缝地完成它。
public static int ExecuteCommand(string Command, int Timeout)
{
int ExitCode;
ProcessStartInfo ProcessInfo;
Process Process;
ProcessInfo = new ProcessStartInfo("cmd.exe", "/C " + Command);
ProcessInfo.CreateNoWindow = true;
ProcessInfo.UseShellExecute = false;
Process = Process.Start(ProcessInfo);
Process.WaitForExit(Timeout);
ExitCode = Process.ExitCode;
Process.Close();
return ExitCode;
}
I have a C# WinForms app that I use to create software patches for my app.
In noticed that Babel .Net includes Babel.Build.dll and Babel.Code.dll
Is there a way, in my C# code, I can call Babel .Net
something like:
ExecuteCommand(C:\Program Files\Babel\babel.exe "C:\Patch\v6\Demo\Bin\Lib.dll" --rules "C:\Patch\babelRules.xml", 600)
Here's a common script to execute a CMD prompt in C#. However if I just include the Babel.Build.dll in my winform I may be able to do it seamlessly.
public static int ExecuteCommand(string Command, int Timeout)
{
int ExitCode;
ProcessStartInfo ProcessInfo;
Process Process;
ProcessInfo = new ProcessStartInfo("cmd.exe", "/C " + Command);
ProcessInfo.CreateNoWindow = true;
ProcessInfo.UseShellExecute = false;
Process = Process.Start(ProcessInfo);
Process.WaitForExit(Timeout);
ExitCode = Process.ExitCode;
Process.Close();
return ExitCode;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
现在,您可以使用随 Babel 安装程序分发的专用接口来调用 Babel Obfuscator。
只需将 Babel.Ux.dll 引用到您的 C# 或 VB.NET 项目中即可。
Now you can call Babel Obfuscator using the dedicated interface distributed with Babel setup.
Just referencing the Babel.Ux.dll into your C# or VB.NET project.