相关疑难解决方法(0)

系统无法在Process Start(tscon.exe)中找到指定Exception的文件

我在tscon上的Process.Start中得到"系统找不到指定Exception的文件"

工作:

Process.Start(new ProcessStartInfo(@"c:\Windows\System32\notepad.exe", "temp.txt"));
Run Code Online (Sandbox Code Playgroud)

不工作:

Process.Start(new ProcessStartInfo(@"c:\Windows\System32\tscon.exe", @"0 /dest:console"));
Run Code Online (Sandbox Code Playgroud)

我需要tscon.exe.为什么我会收到此错误?

编辑:

  1. 验证tscon.exe确实在c:\Windows\System32文件夹中.
  2. 我在管理员模式下运行VS.

该文件有一些强化吗?无法理解这一点......

c# process

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

c# ×1

process ×1