VBscript 中调用wshShell.run 来执行批处理命令 type I love you on a notepad

来源:互联网 发布:刷svip永久软件 编辑:程序博客网 时间:2024/05/17 23:35
' type I love you on a notepadDim wsh,noteset wsh=CreateObject("WScript.Shell")wsh.Run "notepad"WScript.Sleep 400wsh.SendKeys "I "        '模拟从键盘敲击按键的工程WScript.Sleep 400        ' 缓慢打字wsh.SendKeys " L"WScript.Sleep 400wsh.SendKeys "O"WScript.Sleep 400wsh.SendKeys "V"WScript.Sleep 400wsh.SendKeys "E "WScript.Sleep 400wsh.SendKeys " Y"WScript.Sleep 400wsh.SendKeys "O"WScript.Sleep 400wsh.SendKeys "U "

0 0
原创粉丝点击