我正在尝试通过打开新选项卡并将其传递给动态服务器名称来在Web浏览器中打开MsRdpClient连接。但是,以下代码似乎不起作用,我无法动态填充任何所需的值,即servername和可用的屏幕宽度和高度。
resWidth = request.querystring("width")
resHeight = request.querystring("height")
MsRdpClient.DesktopWidth = resWidth
MsRdpClient.DesktopHeight = resHeight
MsRdpClient.Width = resWidth
MsRdpClient.Height = resHeight
MsRdpClient.server = request.querystring("fqdn")
MsRdpClient.username = "username"
MsRdpClient.AdvancedSettings.ClearTextPassword = "password"
MsRdpClient.AdvancedSettings2.RDPPort = "3389"
MsRdpClient.Connect
我不确定从哪里开始。我看到它被问到几块板子,但似乎没有人想出答案。任何帮助将不胜感激。
答案 0 :(得分:0)
以下是我最终使用的脚本。将所需的变量放在via scriptlet中是有用的。即“<%= fqdn%>”
resWidth = (screen.AvailWidth - 45)
resHeight = (screen.AvailHeight - 150)
MsRdpClient.DesktopWidth = resWidth
MsRdpClient.DesktopHeight = resHeight
MsRdpClient.Width = resWidth
MsRdpClient.Height = resHeight
MsRdpClient.server = "<%=fqdn%>"
MsRdpClient.AdvancedSettings2.RDPPort = "3389"
MsRdpClient.Connect
sub MsRdpClient_OnDisconnected(disconnectCode)
history.go(-1)
end sub