【发布时间】:2018-02-06 19:06:33
【问题描述】:
当我使用 runas /? 中显示的相同语法时,Windows runas.exe 应用程序无法运行。例如,显示的用法之一是runas /trustlevel<TrustLevel> program,但是,当我使用runas /trustlevel<0x20000> calc 时,我得到“系统找不到指定的文件”。它在说什么文件?
我注意到另一个人问了类似的问题,但他们试图使用使用 Delphi 编写的控制台程序:Got "The system cannot find the file specified" when I run NETSH from CreateProcess but it works ok on Command Prompt? 但我在 Windows 中使用 DOS 命令,所以我不明白为什么如果我输入命令提示符或开始菜单-> 运行或任务管理器-> 文件-> 运行相同的命令会运行良好,但是当我使用 runas 时将无法正常工作.
【问题讨论】:
-
完全不清楚你想要什么,甚至你在说什么。
-
请在您的问题中将命令作为代码发布,而不是链接图像。
标签: winapi createprocess runas