手机
当前位置:查字典教程网 >脚本专栏 >hta >用hta实现的远程桌面连接脚本
用hta实现的远程桌面连接脚本
摘要:这是一个HTA的脚本,复制下面代码,然后将文件后缀修改为CCC.HTA即可使用,脚本原文出自:myITforum.Com“Connectio...

这是一个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 type="button" value="Run Script" name="run_button">

<Span Id = "DataArea"></Span></Body></html>

【用hta实现的远程桌面连接脚本】相关文章:

二进制文件转换为文本工具

hta 定时关机重启实现代码

hta实现涂鸦效果代码

hta编写的消费记录程序

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

用hta+javascript实现替换网站被下木马网页中的iframe

用hta与ajax实现的五笔字型编码查询工具

用hta实现制作的无殇 - 快书V1.1打包下载了第1/2页

hta作品笨狼CSDN爬虫

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

精品推荐
分类导航