永发信息网

批理处理相关问题

答案:1  悬赏:40  手机版
解决时间 2021-04-24 18:17
  • 提问者网友:我一贱你就笑
  • 2021-04-24 04:52

echo dim program  >a.vbs
echo program="C:\Program Files\Tencent\QQ\Bin\QQ.exe">>a.vbs
echo set Wshell=CreateObject("Wscript.Shell")  >>a.vbs
echo set oexec=Wshell.Exec(program)  >>a.vbs
echo wscript.Sleep 2000  >>a.vbs
echo Wshell.AppActivate "QQTang"  >>a.vbs
echo Wshell.SendKeys "+{TAB}"  >>a.vbs
echo Wshell.SendKeys "406604559"  >>a.vbs
echo wscript.Sleep 1000  >>a.vbs
echo Wshell.SendKeys "{TAB}"  >>a.vbs
echo Wshell.SendKeys "QQ密码"  >>a.vbs
echo wscript.Sleep 1000  >>a.vbs
echo Wshell.SendKeys "{ENTER}">>a.vbs
a.vbs
del a.vbs
exit

帮我解释一下谢谢

最佳答案
  • 五星知识达人网友:鱼芗
  • 2021-04-24 05:34
echo dim program  >a.vbs    把 “dim program”这几个字放到a.vbs文件里
echo program="C:\Program Files\Tencent\QQ\Bin\QQ.exe">>a.vbs   把 “program="C:\Program Files\Tencent\QQ\Bin\QQ.exe">>”追加到 a.vbs文件里
echo set Wshell=CreateObject("Wscript.Shell")  >>a.vbs  下边的也都一样 把 “echo”之后到“>>”之前的字符串 放到 a.vbs文件里
echo set oexec=Wshell.Exec(program)  >>a.vbs
echo wscript.Sleep 2000  >>a.vbs
echo Wshell.AppActivate "QQTang"  >>a.vbs
echo Wshell.SendKeys "+{TAB}"  >>a.vbs
echo Wshell.SendKeys "406604559"  >>a.vbs
echo wscript.Sleep 1000  >>a.vbs
echo Wshell.SendKeys "{TAB}"  >>a.vbs
echo Wshell.SendKeys "QQ密码"  >>a.vbs
echo wscript.Sleep 1000  >>a.vbs
echo Wshell.SendKeys "{ENTER}">>a.vbs
a.vbs     执行a.vbs文件
del a.vbs  删除a.vbs文件
exit     退出
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯