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

所属分类: 脚本专栏 / hta 阅读数: 451
收藏 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>

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

HTANoid 用hta编写的一个经典的游戏

这个是外国人用hta写的一些比较经典的小游戏,喜欢hta的朋友看看
收藏 0 赞 0 分享

hta文件介绍(编写小程序的好东东)

HTA是HTML Application的缩写(HTML应用程序),是软件开发的新概念,直接将HTML保存成HTA的格式,就是一个独立的应用软件,与VB、C++等程序语言所设计的软件没什么差别
收藏 0 赞 0 分享

用来猜后台的HTA小程序

虽然文件时用来猜后台地址的程序,但里面的代码确实值得我们参考学习
收藏 0 赞 0 分享

用hta做的好玩的小程序(固定在桌面)

好玩的小程序 用hta做的,运行后就固定在桌面了
收藏 0 赞 0 分享

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

用hta实现的远程桌面连接效果的脚本,需要事先在hta中填好ip,端口等信息,当然你也可以自己修改下,可以输入ip端口的
收藏 0 赞 0 分享

如何使一个HTA位于屏幕中心(Win32_DesktopMonitor)

我们可以调整(如果需要)窗口大小并使其居中,但这样做时会在屏幕上出现瞬间的闪烁。这并不是太明显,其实际结果就是你所期望的:HTA 会位于屏幕中心
收藏 0 赞 0 分享

hta 实现的五子棋界面

这篇文章主要介绍了hta 实现的五子棋界面,需要的朋友可以参考下
收藏 0 赞 0 分享

运行程序的hta

运行程序的hta
收藏 0 赞 0 分享

个人学习之作 hta 原创

这个hta是基于asp操作access数据库实现的,方便存储个人学习资料的一个东西,也是脚本之家的雏形,好不容易找到了备份,希望大家能喜欢
收藏 0 赞 0 分享

NCC Tools(never code counter tools) V1.0.1发布代码-代码统计工具

NCC Tools(never code counter tools) V1.0.1发布代码-代码统计工具
收藏 0 赞 0 分享
查看更多