问题描述
DfsDiag.exe
默认位于C:\windows\system32
中.我尝试使用Process.Start
启动它的进程,但是我似乎总是会收到错误The system cannot find the file specified
.到目前为止,我似乎还没有其他问题.
DfsDiag.exe
is located by default in C:\windows\system32
. I try to start a process for it with Process.Start
but I always seem to get the error The system cannot find the file specified
.I don't seem to have the problem with anything else so far.
我尝试过...
- 指定完整路径
@"C:\Windows\System32\DfsDiag.exe"
- 将文件复制到运行目录中.
前者失败而后者工作.我无法为自己的生活找出原因.
The former failed while the latter worked. I can't for the life of me work out why.
(操作系统是Windows Server Standard 2008 R2)
(OS is Windows Server Standard 2008 R2)
推荐答案
32位应用程序?您对文件系统重定向犯规.尝试使用C:\ Windows \ SysNative.
32-bit app? You've fallen foul of filesystem redirection. Try C:\Windows\SysNative.
这篇关于Process.Start和dfsdiag.exe的奇怪行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!