我正在尝试在我的代码中启动MS NLB管理器(nlbmgr.exe),但程序说它不存在,即使它存在.我已经检查了文件权限,但我仍然可以访问,但它仍然无效.
这是我正在使用的代码:
if (File.Exists(@"C:\Windows\system32\nlbmgr.exe"))
{
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = @"C:\Windows\system32\nlbmgr.exe";
info.UseShellExecute = true;
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Maximized;
info.RedirectStandardInput = false;
info.RedirectStandardOutput = false;
info.RedirectStandardError = false;
System.Diagnostics.Process p = System.Diagnostics.Process.Start(info);
}
Run Code Online (Sandbox Code Playgroud)
如果我将路径复制粘贴到命令提示符或开始 - >运行,它可以正常工作.
我看到其他帖子提到sysnative文件夹,但我的系统上不存在.
谢谢您的帮助.
c# ×1