简体   繁体   中英

Starting a rdp connection from the command line to use in scripting (on Windows)

I have an icon on my desktop that points to a remote desktop connection

The link is "test.rdp"

I want to start this from autohotkey in a script.

Any idea on how to start this from the command line?

I suppose you are using Windows. On Windows the remote desktop program is mstsc.exe . You can launch it from command lineby typing mstsc C:/path/test.rdp , where C:/path/test.rdp should be replaced by the actual path to your .rdp file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM