Dudule
2016-04-23 08:44:50 UTC
Hello,
I want to execute some VBS before starting Firefox and after it terminates.
I tried the following two examples:
1=======================
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
MsgBox "Hello Start FF"
Set oExec = WshShell.Execstrcmd="C:\Progra~2\Mozill~1\firefox.exe"
Do While oExec.Status = 0
WScript.Sleep 100
Loop
MsgBox "Hello End FF"
=========================
and
2========================
Dim WS, strcmd
MsgBox "Hello Start FF"
Set WS = Wscript.CreateObject("Wscript.Shell")
strcmd="C:\Progra~2\Mozill~1\firefox.exe"
WS.run strcmd,3,True
MsgBox "Hello End FF"
=========================
But none of the 2 examples works, the message "Hello End FF" is always
displayed before FF shut down...
How to ???
Thanks for any answer...
I want to execute some VBS before starting Firefox and after it terminates.
I tried the following two examples:
1=======================
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
MsgBox "Hello Start FF"
Set oExec = WshShell.Execstrcmd="C:\Progra~2\Mozill~1\firefox.exe"
Do While oExec.Status = 0
WScript.Sleep 100
Loop
MsgBox "Hello End FF"
=========================
and
2========================
Dim WS, strcmd
MsgBox "Hello Start FF"
Set WS = Wscript.CreateObject("Wscript.Shell")
strcmd="C:\Progra~2\Mozill~1\firefox.exe"
WS.run strcmd,3,True
MsgBox "Hello End FF"
=========================
But none of the 2 examples works, the message "Hello End FF" is always
displayed before FF shut down...
How to ???
Thanks for any answer...