内容显示页
 
类别:服务器相关 | 浏览(131) | 2007-11-29 16:28:17

'/*=========================================================================
' * Intro       解决win2003远程桌面连接多台服务器时,重做系统后还得一个一个得加半天。效率非常低的问题
' * FileName    批量添加远程桌面.vbs
' * Author      yongfa365
' * Version     v1.0
' * WEB         http://www.yongfa365.com
' * Email       yongfa365[at]qq.com
' * FirstWrite  http://www.yongfa365.com/Item/PiLiangTianJiaYuanChengZhuoMian.vbs.html
' * MadeTime    2007-11-29 00:46:30
' * LastModify  2007-11-29 00:46:30
' *==========================================================================*/

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run("%SystemRoot%\system32\tsmmc.msc /s") 
WScript.Sleep 3000

Dim ip(100)
'ip(0)=Array("服务器远程桌面IP","服务器远程桌面用户名","服务器远程桌面密码")
ip(0)=Array("100.110.111.112","UserName0","PassWord0")
ip(1)=Array("111.222.111.121:3389","UserName1","PassWord1")
ip(2)=Array("111.222.111.211:1234","UserName2","PassWord2")
ip(3)=Array("111.222.111.222","UserName3","PassWord3")

For i=0 To 3
	WshShell.SendKeys "+{F10}"
	WshShell.SendKeys "A"
	WshShell.SendKeys ip(i)(0)
	WshShell.SendKeys "{TAB}"
	WshShell.SendKeys "{TAB}"
	WshShell.SendKeys "{TAB}"
	WshShell.SendKeys "{TAB}"
	WshShell.SendKeys ip(i)(1)
	WshShell.SendKeys "{TAB}"
	WshShell.SendKeys ip(i)(2)
	WshShell.SendKeys "{ENTER}"
Next

引用本页地址:http://www.yongfa365.com/item/PiLiangTianJiaYuanChengZhuoMian.vbs.html
 
 
相关链接
 
网友评论:
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片看不清? 换张图试试
 
   
 
 
文章分类
 
   

power by :柳永法(yongfa365)'Blog | model by :hibaidu | css by:众网友 | 京ICP备07011491号   我要统计  

本空间赞助商:北京中科兴联信息技术有限公司

QQ:64049027    E-mail:64049027<at>qq.com