简要咨询咨询QQ网站导航网站搜索手机站点联系我们设为首页加入收藏 

用hta实现的远程桌面连接脚本

来源:易贤网   阅读:1006 次  日期:2016-06-24 09:25:10

温馨提示:易贤网小编为您整理了“用hta实现的远程桌面连接脚本”,方便广大网友查阅!

这是一个hta的脚本,复制下面代码,然后将文件后缀修改为ccc.hta即可使用,脚本原文出自: myitforum.com

“connection file”

/console

/admin

/w:xxx

/h:xxx

/public

/span

/edit

/migrate

for a complete list of available remote desktop connection usage switches from the run line enter: mstsc /?

tip: on the line(s) that read:

<input type=radio name=radiooption value=serverone>server one<br>

you can change the value=serverone to the machines ip address if needed or you can change the server one machine name value to a more descriptive name such as in the example below:

<input type=radio name=radiooption value=sms001>primary<br>

<input type=radio name=radiooption value=sms002>secondary<br>

hta script:

代码如下:

<html>

<head>

<title>remote desktop chooser</title>

<style>

body {background-color: cornsilk}

</style>

<hta:application

caption = yes

border = thick

scroll = no

showintaskbar = no

maximizebutton = yes

minimizebutton = yes>

<script language = vbscript>

sub window_onload

window.resizeto 400,250

end sub

sub windowsload

for each objbutton in radiooption

if objbutton.checked then

set wshshell = createobject(wscript.shell)

wshshell.run mstsc /v & objbutton.value & /f

end if

next

self.close()

end sub

</script><body>

<p><h3 align = center><font color='orange'>please visit myitforum.com</font></h3>

<div></div>

<table align='center'>

<input type=radio name=172.16.24.100 value=serverone>172.16.24.100<br>

<input type=radio name=radiooption value=servertwo>server two<br>

<input type=radio name=radiooption value=serverthree>server three<p>

<input id=runbutton  class=button type=button value=run script name=run_button  onclick=windowsload>

<span id = dataarea></span></body></html>

更多信息请查看脚本栏目
点此处就本文及相关问题在本站进行非正式的简要咨询(便捷快速)】     【点此处查询各地各类考试咨询QQ号码及交流群
上一篇:js检查中文大写字母
下一篇:javasript实现查看隐藏的密码框明文代码
易贤网手机网站地址:用hta实现的远程桌面连接脚本
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!