内容显示页
 
类别:服务器+软件 | 浏览(460) | 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
 
 
相关链接
 
网友评论:
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片 看不清? 换张图试试
 
     
 
 
文章分类
 
 
.Net + C#(59)
 
 
ASP+VBS(161)
 
 
 
Linux(10)
 
 
 
web 2.0(25)
 
 
 
 
 
心程(68)
 
生活(95)
 
 
     

Power by :柳永法(yongfa365)'Blog  | 京ICP备07011491号  QQ:64049027  E-mail:64049027@qq.com yongfa365'CodePlex yongfa365'CodeGoogle

申请友情链接 要求:跟本站主题相类似正规网站,双方交换为首页位置

转载请注明来源,以便后人及时得到最新、修正、加强版!!!