用你生成rpc文件的方法生成rdp文件,格式如下链接:
http://dev.remotenetworktechnology.com/ts/rdpfile.htm生成好后调用mstsc,大致方法跟你的差不多吧:
ProcInfo.FileName="mstsc Path\\FileName.rdp"; 具体mstsc参数可以在cmd窗口输入"mstsc -?"查看~!
http://dev.remotenetworktechnology.com/ts/rdpfile.htm生成好后调用mstsc,大致方法跟你的差不多吧:
ProcInfo.FileName="mstsc Path\\FileName.rdp"; 具体mstsc参数可以在cmd窗口输入"mstsc -?"查看~!
desktopwidth:i:1024
desktopheight:i:768
session bpp:i:16
winposstr:s:0,1,148,40,948,640
full address:s:192.168.0.1(连接计算机的IP地址)
compression:i:1
keyboardhook:i:2
audiomode:i:0
redirectdrives:i:0
redirectprinters:i:1
redirectcomports:i:0
redirectsmartcards:i:1
displayconnectionbar:i:1
autoreconnection enabled:i:1
username:s:Administrator (连接计算机的用户名)
domain:s:SERVER01(连接计算机名)
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:0
disable cursor setting:i:0
bitmapcachepersistenable:i:1
下面是*.rdp文件的内容,其中几个主要项后面有加注释
——————————————————————
screen mode id:i:2 //全屏显示
desktopwidth:i:800
desktopheight:i:600
session bpp:i:16
auto connect:i:1
full address:s:192.168.10.13 //ip地址
username:s:44 //用户名
password 51:b:01010101 //只有这个不敢确定,有点问题,我的密码是55,
.
.
.
——————————————————————解释如下:
password 51:类型:值 类型 值 注释
b (big long binary hash) Ifyou choose to save the connection password, this will be a large binary hash value 我文件中的项password 51:b:值 值该怎么写?