gpt4 book ai didi

C++:在Windows机器下远程执行命令

转载 作者:行者123 更新时间:2023-11-30 04:36:04 27 4
gpt4 key购买 nike

我本质上是一名 Linux 程序员,需要弄清楚 Windows 机器 (C++) 上的远程命令执行。检查了一些选项,例如

1. psExec
2. rcmd
3. service control manager

谁能建议哪种方法最适合这个目的?一些标准:

  1. Should work with all Windows OS (XP, Server etc).
  2. Need to decide on basis of licensing issue, if it can be incorporated in a commercial sofware using C++.
  3. Does Visual studio (VC++) provide any default interface for remote command execution.

最佳答案

这并不难。您可以以编程方式登录到远程计算机。登录后,您可以注入(inject)服务,启动它,然后执行您需要执行的所有必要工作。完成后,卸载该服务并注销。

关于C++:在Windows机器下远程执行命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4782567/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com