문제

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.

I tried...

  • Specifying the full path @"C:\Windows\System32\DfsDiag.exe"
  • Copying the file to the running directory.

The former failed while the latter worked. I can't for the life of me work out why.

(OS is Windows Server Standard 2008 R2)

도움이 되었습니까?

해결책

32-bit app? You've fallen foul of filesystem redirection. Try C:\Windows\SysNative.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top