Scripting help! VBS.

I'm trying to run this vbs script.

Dim fso, ws, file, APP_PATH
Set ws = WScript.CreateObject("WScript.Shell")
APP_PATH = """C:\Program Files\Internet Explorer\iexplore.exe"""
ws.run APP_PATH

do
set shl = createobject("wscript.shell")
shl.sendkeys "hi"
wscript.sleep 8000
loop

And make the vbs script close itself when the application it opened is closed (in this case it is Internet Explorer). I have little to no experience with vbs script so I don't even understand where to start. Please help!




September 5th, 2015 8:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics