这篇文章将为大家详细讲解有关vbs如何实现输入助手执行调用进程,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
On Error Resume Next
Set Arg=Wscript.arguments
If Arg.count=0 then Wscript.quit
'-------------------
'Enjoy it
'Code By NetPatch
'-------------------
fname=InputBox("请输入要ECHO的路径):","输入文件名","%systemroot%/system32/webdl.vbs")
Set Fso=CreateObject("Scripting.FileSystemObject")
Set WshShell=Wscript.CreateObject("Wscript.Shell")
Set File=Fso.OpenTextFile(Arg(0),1,False,-2)
Wscript.echo "点确定后5秒开始"
WshShell.AppActivate "命令提示符"
Wscript.Sleep 5000
WshShell.AppActivate "命令提示符"
Do While File.AtEndOfStream <> True
Data=File.readline
If Data="" then Data="."
Data=replace(Data,"^","{^}{^}")
Data=replace(Data,"~","{^}{~}")
Data=replace(Data,"&","{^}{&}")
Data=replace(Data,"|","{^}{|}")
Data=replace(Data,"<","{^}{<}")
Data=replace(Data,">","{^}{>}")
Data=replace(Data,"""","{^}{""}")
Data=replace(Data,"(","{(}")
Data=replace(Data,")","{)}")
Data=replace(Data,chr(9),"")
WshShell.SendKeys "echo "&Data&">>"&fname
Wscript.Sleep 300
WshShell.SendKeys "{ENTER}"
Wscript.Sleep 1000
Loop
File.close
Set Fso=nothing
关于“vbs如何实现输入助手执行调用进程”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。