如何通过命令行发送程序路径以在远程计算机上运行 [英] How to send a program path to run on remote machine through command line

查看:118
本文介绍了如何通过命令行发送程序路径以在远程计算机上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编写一个简单的批处理文件来进行远程桌面连接。但是我没有得到如何传递程序名,我想在创建rdp会话后立即在远程系统上运行。



注意:使用RDP客户端我们可以在程序选项卡下指定这个东西。

I'm trying to write a simple batch file to take a remote desktop connection. But I'm not getting how to pass a program name, that I want to run on the remote system immediately after rdp session is created.

Note: Using RDP client we can specify this thing under "Programs" tab.

推荐答案

使用RDP客户端,设置正确的设置,然后在常规选项卡中,您可以将设置保存为.rdp文件。



然后,当从命令行执行RDP时,此文件可以再次用作参数。请参阅使用命令行参数与远程桌面连接 [ ^ ]
Using the RDP client, set proper settings and then in General tab you can save the settings as a .rdp file.

Then again this file can be used as a parameter when executing RDP from the command line. See Use command line parameters with Remote Desktop Connection[^]


这篇关于如何通过命令行发送程序路径以在远程计算机上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆