用hta实现的远程桌面连接脚本
来源: 阅读:815 次 日期: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>

更多信息请查看脚本栏目
由于各方面情况的不断调整与变化, 提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
关于我们 | 联系我们 | 人才招聘 | 网站声明 | 网站帮助 | 非正式的简要咨询 | 简要咨询须知 | 加入群交流 | 手机站点 | 投诉建议
工业和信息化部备案号:滇ICP备2023014141号-1 云南省教育厅备案号:云教ICP备0901021 滇公网安备53010202001879号 人力资源服务许可证:(云)人服证字(2023)第0102001523号
云南网警备案专用图标
联系电话:0871-65317125(9:00—18:00) 获取招聘考试信息及咨询关注公众号:hfpxwx
咨询QQ:526150442(9:00—18:00)版权所有:
云南网警报警专用图标
Baidu
map