用hta实现的远程桌面连接脚本
2016-06-24来源:

这是一个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>

推荐信息
Baidu
map