首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

怎么用c#代码执行.net自带的工具,例如csc.exe和windiff.exe

2012-01-09 
如何用c#代码执行.net自带的工具,例如csc.exe和windiff.exe我想用windiff.exe去比较两个文件是否相同有没

如何用c#代码执行.net自带的工具,例如csc.exe和windiff.exe
我想用windiff.exe去比较两个文件是否相同
有没有什么好的现成代码?

[解决办法]
没用过,只能帮顶了
[解决办法]
System.Diagnostics.Process _Process = new System.Diagnostics.Process();

_Process.StartInfo.FileName = @"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\WinDiff.Exe";
_Process.StartInfo.Arguments = @" -D C:\1.TXT C:\2.TXT"; 
_Process.StartInfo.UseShellExecute = false;
_Process.StartInfo.RedirectStandardOutput = true;
_Process.Start();

[解决办法]
UP

热点排行