hi Killer42, thanks for answer.
I have successfull make a program to run a application and close it after 5 minutes and reopen it again after 3 seconds closed.
i used this codes to open a application :
- app = Shell(Environ$("programFiles") + "\Internet Explorer\iexplore.exe", vbNormalFocus)
and i use this procedure to close / terminate the application :
- Private Sub TerminateProcess(app_exe As String)
-
Dim Process As Object
-
For Each Process In GetObject("winmgmts:").ExecQuery("Select Name from Win32_Process Where Name = '" & app_exe & "'")
-
Process.Terminate
-
Next
-
End Sub
Now i want to open firefox with a URL opened in a tab, i want to close that tab without closing firefox, anybody can help?