首页 > 其他 > 详细

测试RDP回放

时间:2014-03-11 22:49:44      阅读:598      评论:0      收藏:0      [点我收藏+]

Dim fso,num,flag
flag=true
set bag=getobject("winmgmts:\\.\root\cimv2")

Set fso=CreateObject("Scripting.FileSystemObject")
Set WshShell=WScript.CreateObject("WScript.Shell")
‘if fso.FileExists("hello.txt") then
‘set sfile=fso.getfile("hello.txt")
‘sfile.attributes=0
‘sfile.delete
‘end if
‘Set TestFile=fso.CreateTextFile("hello.txt",Ture)
‘Set a=fso.opentextfile("hello.txt",1,true)
‘WshShell.Run "hello.txt"
WshShell.run "notepad"

num=1
while flag


WScript.sleep 2000
WshShell.SendKeys num
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "A"
WshShell.SendKeys "{ENTER}"
num=num+1
flag=false
set pipe=bag.execquery("select * from win32_process where name=‘notepad.exe‘")
For each id in pipe
    flag=true        
Next

wend
set fso=nothing
set WshShell=nothing

测试RDP回放,布布扣,bubuko.com

测试RDP回放

原文:http://www.cnblogs.com/duyy/p/3593303.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!