好吧,这个问题的标题有点愚蠢,但我会非常非常简单地解释它。
在我的代码中,我正在规划一个远程桌面.exe
像这样:
Process rtc;
rtc = Process.Start(@"C:\Windows\System32\mstsc.exe");
Run Code Online (Sandbox Code Playgroud)
现在,事情是。当远程桌面出现(它的工作)时,我想知道如何在连接的文本框中输入名称。
所以当遥控器启动时,conntion 名称将在那里,或一个 ip。
它甚至可能吗?
mstsc 有很多命令行参数可以传递给它:
MSTSC [<connection file>] [/v:<server[:port]>] [/admin] [/f[ullscreen]] [/w:<width> /h:<height>] [/public] | [/span] [/multimon] [/migrate] [/edit "connection file"]
"connection file" -- Specifies the name of an .RDP file for the connection.
/v:<server[:port]> -- Specifies the remote computer to which you want to connect.
/admin -- Connects you to the session for administering a server.
/f -- Starts Remote Desktop in full-screen mode.
/w:<width> -- Specifies the width of the Remote Desktop window.
/h:<height> -- Specifies the height of the Remote Desktop window.
/public -- Runs Remote Desktop in public mode.
/span -- Matches the remote desktop width and height with the local virtual desktop, spanning across multiple monitors, if necessary. To span across monitors, the monitors must be arranged to form a rectangle.
/multimon -- Configures the remote desktop session monitor layout to be identical to the current client-side configuration.
/edit -- Opens the specified .RDP connection file for editing.
/migrate -- Migrates legacy connection files that were created with Client Connection Manager to new .RDP connection files.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6725 次 |
| 最近记录: |