DfsDiag.exe
默认位于C:\windows\system32
. 我尝试为它启动一个过程,Process.Start
但我似乎总是得到错误The system cannot find the file specified
。到目前为止,我似乎没有其他任何问题。
我试过...
- 指定完整路径
@"C:\Windows\System32\DfsDiag.exe"
- 将文件复制到运行目录。
前者失败,后者奏效。我不能为我的生活找出原因。
(操作系统为 Windows Server Standard 2008 R2)