Do you run Firefox and firefox ultimate optimizer and hate having the optimizer running all the time, even when ur not using firefox?
Well here's a script i threw together just then, just run it and it will open firefox + the optimizer, and when your finished just close firefox and the script will close the optimizer for you! its as easy as that!
Yeah ok, im just showing off now, its boring, but seriously. I thought i might give this to others and see what u guys think. any suggestions and/or comments are welcome
Code:
Option Explicit
Dim objWMIService, objProcess, colProcess
Dim strComputer
Dim Running
dim objshell
Set objShell = CreateObject("WScript.Shell")
objshell.Run "E:\FirefoxUltimateOptimizer.exe"
objshell.Run "firefox.exe"
Running = "True"
strComputer = "."
Do While Running = "True"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process")
Running = "false"
For Each objProcess in colProcess
If objprocess.name = "firefox.exe" then
Running = "True"
end if
Next
loop
For Each objProcess in colProcess
If objprocess.name = "FirefoxUltimateOptimizer.exe" then
objprocess.terminate()
end if
Next
WScript.Quit
just copy and paste into notepad, change "E:\FirefoxUltimateOptimizer.exe" to path of ur optimizer file ( I think it has to be at the root of a drive, thats the only way i could get it to work) and simply save as a .vbs file.
just run it and viola! firefox and optimizer!:eek::eek:
__________________
Intel Q9450 @2.6 + TRUE
Asus Maximus Formula...ugg...
4 Gig Corsair Domiator
Inno3D 9800 GTX OC edition
Coolermaster 700W
Seagate 500 and 320 Gig and WD 80 Gig SATA II
Coolermaster RC 690
Samsung 206BW 20"