Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用 ssh.net 连接到另一台计算机时,我想运行一个批处理脚本
它似乎不起作用:
SshCommand command = client.RunCommand("C:\mybatch.bat");
我可以连接并运行类似的命令,shutdown但无法运行批处理文件。
shutdown
我应该怎么办?
尝试从另一个驱动器调用脚本。驱动器 C 可能需要管理员权限才能访问。
SshCommand command = client.RunCommand("D:\mybatch.bat");