J'ai une application C# WinForms que j'utilise pour créer des correctifs logiciels pour mon application.Appelez Babel .Net Obfuscator à partir du code C#
Dans remarqué que Babel .Net comprend Babel.Build.dll et Babel.Code.dll
Est-il possible, dans mon code C#, je peux appeler Babel .Net
quelque chose comme:
ExecuteCommand(C:\Program Files\Babel\babel.exe "C:\Patch\v6\Demo\Bin\Lib.dll" --rules "C:\Patch\babelRules.xml", 600)
Voici un script commun pour exécuter une invite CMD en C#. Cependant, si je ne fais que inclure le fichier Babel.Build.dll dans mon winform, je peux le faire de façon transparente.
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;
}
Vous devrez désassembler Babel.Build.dll. Oh attends ... –
Mieux vaut demander cela aux développeurs de Babel. – logicnp