1
我想用C#创建远程桌面连接。我发现这个问题Run mstsc.exe with specified username and password。为mstsc.exe提供路径参数
目前我可以使用用户名和密码创建一个新的连接,但是我想更改.rdp文件将被保存的路径。
也许你有一个想法,我可以如何改变保存路径。
我想用C#创建远程桌面连接。我发现这个问题Run mstsc.exe with specified username and password。为mstsc.exe提供路径参数
目前我可以使用用户名和密码创建一个新的连接,但是我想更改.rdp文件将被保存的路径。
也许你有一个想法,我可以如何改变保存路径。
更好的是设置默认路径,您可以创建rdp
文件本身并将其保存在默认路径中。
rdp
文件应包含以下内容。
"full address:s:" + IP
"username:s:" + User
"domain:s:" + Domain
"password 51:b:" + Pass
"port:i:" + Port
"screen mode id:i:1"
"desktopwidth:i:800"
"desktopheight:i:600"
"session bpp:i:32"
"auto connect:i:1"
"autoreconnection enabled:i:1"
"compression:i:1"
"keyboardhook:i:2"
"audiomode:i:2"
"redirectdrives:i:1"
"redirectprinters:i:1"
"redirectcomports:i:0"
"redirectsmartcards:i:0"
"displayconnectionbar:i:1"
"alternate shell:s:"
"shell working directory:s:"
"disable wallpaper:i:1"
"disable full window drag:i:1"
"disable menu anims:i:1"
"disable themes:i:1"
"bitmapcachepersistenable:i:1";
贝蒂默认路径,你可以保存RDP文件在这条道路......试试这个... http://stackoverflow.com/questions/7654992/generating-rdp-profile-issue –
@ KishoreSahas让我创建一个新文件复制所有重要数据并保存为.rdp? (=不使用mstsc.exe) – MyName
是的,我认为这是更好.. –