Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何调用远程位于系统上的exe_C#_.net_.net 4.5 - Fatal编程技术网

C# 如何调用远程位于系统上的exe

C# 如何调用远程位于系统上的exe,c#,.net,.net-4.5,C#,.net,.net 4.5,我使用了链接上发布的代码 并在线路上更改了记事本的位置 info.Arguments=@\\\+serverName+@-ic:\WINDOWS\System32\notepad.exe,但仍然抛出错误,如 系统找不到指定的文件,不知道此错误的原因。我的目标系统是windows 2008 R2 serverC中有两个notepad.exe可用:\ 在Windows目录中,如c:\Windows\notepad.exe 在System32目录中,如c:\Windows\System32\notep

我使用了链接上发布的代码 并在线路上更改了记事本的位置 info.Arguments=@\\\+serverName+@-ic:\WINDOWS\System32\notepad.exe,但仍然抛出错误,如
系统找不到指定的文件,不知道此错误的原因。我的目标系统是windows 2008 R2 server

C中有两个notepad.exe可用:\

在Windows目录中,如c:\Windows\notepad.exe 在System32目录中,如c:\Windows\System32\notepad.exe 如果要访问System32目录中的notepad.exe,则需要管理员凭据


建议:使用c:\Windows\notepad.exe此代码。远程系统上是否安装了PsExec?远程运行程序不需要该代码。只需在Powershell中输入PSSession servername即可启动新会话,而无需安装psexec或其他任何东西。您可以在代码中轻松创建远程Powershell管道,如下所示:well@PanagiotisKanavos如何做???@500-内部服务器错误如何知道远程服务器上安装了psexec好的,如果安装了它,你就会知道它在那里…我没有c:\Windows\notepad.exe检查这一个c:\Windows\SysWOW64\notepad.exe