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

所属分类: 脚本专栏 / hta 阅读数: 482
收藏 0 赞 0 分享

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

更多精彩内容其他人还在看

hta查看磁盘空间的脚本

用hta实现的可以查看磁盘剩余空间的脚本
收藏 0 赞 0 分享

HTA编辑HOST文件的脚本

一个修改HOST文件的小工具,利用FSO实现,代码比较长,功能也比较多
收藏 0 赞 0 分享

hta实现的定时重启或关闭计算机的小工具

一个用于定时重启或关闭计算机的小工具,适用于Windows 2K/XP/2003
收藏 0 赞 0 分享

hta实现的二进制文件转换为文本

hta 二进制文件转换为文本工具
收藏 0 赞 0 分享

风讯注入exp(hta版)代码发布

风讯注入exp实例代码,hta版的方便使用
收藏 0 赞 0 分享

学习正则帮手笨狼正则练习器

把下面的文件保存为hta文件,运行即可
收藏 0 赞 0 分享

hta实现的笨狼XSLT练习器

学习XSLT的朋友,用这个小工具不错
收藏 0 赞 0 分享

hta实现的笨狼树状节点查看器

笨狼树状节点查看器
收藏 0 赞 0 分享

hta作品笨狼CSDN爬虫

笨狼CSDN爬虫
收藏 0 赞 0 分享

hta(vbs)列目录树代码

一个网友在短消息里问我这个问题,并给出了他写的出错代码。短消息有字数限制,在此回复他一下。玩了两个月,没有写代码了,脑子不好用了。费了好大劲,最后还是请教了老马才把网友的代码更写出来,几乎是重写了,呵呵。
收藏 0 赞 0 分享
查看更多