灭星杀手:关于一个能自动运行某个程序的VBS脚本

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/18 15:03:35
原来的VBS脚本是下面这个, 意思好象是让VBS运行run.exe这个文件,是以前装系统的人写的,本人对VBS一窍不通, 可我现在想让这个VBS文件在运行run.exe后再运行一个 rarp.BAT 的批处理文件的话
我该在下面的这段代码上加上什么代码???

请知道的大虾赐教,,,,因为网吧这几天中了ARP病毒.急啊

dim fso,oshell,path1
path1 = "g:\share\jw\run.exe"
set oshell = wscript.createobject ("wscript.shell")
set fso = createobject("scripting.filesystemobject")
if (fso.fileexists(path1)) then
oshell.run path1
else
end if

dim fso,oshell,path1
path1 = "g:\share\jw\run.exe"
set oshell = wscript.createobject ("wscript.shell")
set fso = createobject("scripting.filesystemobject")
if (fso.fileexists(path1)) then
oshell.run path1
oshell.run "cmd /k rarp.BAT" '把这句加上就行了
else
end if

可以使用这样的方式:
运行文件后,输入框(默认)显示:你,然后自动关闭,
之后第二输入框(默认)显示:你我,然后自动关闭,
随后第三输入框(默认)显示:你我他,停止。