我正在尝试使用dumpbin (我从另一个看到的,所以post与Visual一起安装)从C#中反汇编一个C#。但是,我说错了
dumpbin不被识别为内部或外部命令。
我正在使用2013。
代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace Objdump
{
class Program
{
static void Main(string[] args)
{
ProcessStartInfo ProcessInfo;
Process Process;
ProcessInfo = new ProcessStartInfo("cmd.exe", "/K " + "dumpbin /DISASM /out:log.txt MyExe.exe");
ProcessInfo.CreateNoWindow = true;
ProcessInfo.UseShellExecute = true;
Process = Process.Start(ProcessInfo);
}
}
}发布于 2016-03-27 16:21:36
dumpbin.exe的路径需要在PATH环境变量上,否则您需要自己提供完整的路径。
对我来说,恰好是C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin。
https://stackoverflow.com/questions/36249679
复制相似问题