我正在开发一个在c#中的Windows Forms应用程序,它将对文档进行更改,我想包括一个按钮,它将在winmerge中打开之前和之后。
如果可能,我该怎么做呢?
更多详细信息:
我想单击文本框中包含起始文件的按钮Show Result。它应该打开winmerge并打开this dialog,原始文件在左边,更新文件在右边。
到目前为止,我有:
Process notePad = new Process();
notePad.StartInfo.FileName = "WinMerge.exe";
notePad.StartInfo.Arguments = txtIn.Text;
notePad.Start();更新的文件与输入文件位于同一目录中,该目录位于下一级文件夹中的“已更新”文件夹中。
发布于 2017-07-11 03:11:04
String leftFilePath = "...";
String rightFilePath = "...";
string exe = "winmergeu.exe";
String args = $@"""{leftFilePath}"" ""{rightFilePath}""";
Process.Start(exe, args);https://stackoverflow.com/questions/45019790
复制相似问题