Kill Bbclient.exe

  • Thread starter TJS
  • Start date
  • Replies: Replies 47
  • Views: Views 18,949
T

TJS

Newbie
Messages
55
Location
NA
ISP
Sify
Edit: Use AHK Compiled Script (KillSBC) to start BBClient instead of VBScript.
--------------------------------------------------
1. KillSBC
See Post #25

2. How to Logout ?
See Post #22, #23

3. KeepAlive
See Post #27
=============================

1. Copy this code (change the path of BBClient.exe if different) to notepad and save it as .vbs file (say, BBClient.vbs).

Code:
strComputer = "."Set objWMIService = GetObject("winmgmts:" _    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")StartProg "C:\Program Files\Sify Broadband\BBClient.exe"Do ProAv = CheckAv("HBSbeat.exe") If ProAv ThenExit DoElseIf CheckAv("BBClient.exe") = False ThenWScript.QuitEnd If Loop While ProAv = FalseSet colNamedArguments = WScript.Arguments.NamedsTime = colNamedArguments.Item("Sleep")WScript.Sleep sTimeKillProcess "BBClient.exe"KillProcess "HBSbeat.exe"KillProcess "BBImpSec.exe"Sub StartProg(strPath)Const NORMAL_WINDOW = 5Set objStartup = objWMIService.Get("Win32_ProcessStartup")Set objConfig = objStartup.SpawnInstance_objConfig.ShowWindow = NORMAL_WINDOWSet objProcess = GetObject("winmgmts:root\cimv2:Win32_Process")errReturn = objProcess.Create _(strPath, null, objConfig, intProcessID)End SubSub KillProcess(ProcessName)Set colProcessList = objWMIService.ExecQuery _    ("Select * from Win32_Process Where Name ='" & ProcessName & "'")For Each objProcess in colProcessList    objProcess.Terminate()NextEnd SubFunction CheckAv(ProcessName)Set colProcesses = objWMIService.ExecQuery _    ("Select * from Win32_Process Where Name = '" & ProcessName & "'")If colProcesses.Count Then    CheckAv = TrueElse   CheckAv = FalseEnd IfEnd Function
2. Create shortcut to BBClient.vbs.

3. Right click BBClient.vbs shortcut > Properties.

4. Add argument /Sleep:5000 in target path.

http://imageshack.us

Now when you double-click BBClient.vbs shortcut, it will launch bbclient.exe and will terminate it automatically after 5 seconds. :D

Script updated 5/6/06
 
Dukes Mangola

Dukes Mangola

Regular
Messages
170
Location
NA
Terminating it won't kill my logged on session midway, will it ?
 
T

TJS

Newbie
Messages
55
Location
NA
ISP
Sify
Terminating bbclient.exe won't kill your log on session.

Well, the idea here is - login and kill bbclient.exe using same script.

When you double-click BBClient.vbs shortcut it will launch bbclient.exe (login now) and then it will kill bbclient.exe automatically after 5 s to free up system resources.

If you just want to kill bbclient.exe process then use this code

Code:
strComputer = "."Set objWMIService = GetObject("winmgmts:" _    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set colProcessList = objWMIService.ExecQuery _    ("Select * from Win32_Process Where Name = 'bbclient.exe'")For Each objProcess in colProcessList    objProcess.Terminate()Next
 
C

coolbuddy_79

The Coolest One!!!
Messages
3,471
Location
NA
ISP
TriB 749NU @ 2 mbps
nice one...but super sify works for me fine :D
 
T

TJS

Newbie
Messages
55
Location
NA
ISP
Sify
Thanks.Script modified to kill BBImpSec.exe. So memory usage after login = memory usage before login :D
 
P

popcorn

Senior Member
Messages
3,318
Location
Mumbai
ISP
Some company Broadband(25mbps)
i saw my mem usage of bbclient.exe.... its just 972 KB
 


P

popcorn

Senior Member
Messages
3,318
Location
Mumbai
ISP
Some company Broadband(25mbps)
i dont think u r using xp.it used 972KB in winxp. still i will verify again and let you know.
 
Dukes Mangola

Dukes Mangola

Regular
Messages
170
Location
NA
wow, thanks TJS! Supersify hasnt been working here for a couple of months now, so this rocks! The only problem is that I'll still need to login via bbclient.exe sometimes to check my session details if I'm downloading a lot of stuff during the day... Does anyone know any easier ways of checking on the session details ?Sorry for the double posting.But, stupid question time: How do I log out ? :p
 
P

priyoban

Regular
Messages
107
Location
NA
ISP
DataOne Home 500
Just get sify guard and leave it running... configure it properly and it will prompt you everyday when you are about to reach your 150 mb limit during 8 am to 10 pm. It resets itself the next day so it's very useful... also takes up very lil mem.
 
T

TJS

Newbie
Messages
55
Location
NA
ISP
Sify
QUOTE(Dukes Mangola @ May 17 2006, 08:26 PM) [snapback]51580[/snapback]
Does anyone know any easier ways of checking on the session details ?
[/b]
Here is the solution:
http://www.broadbandforum.co/index.php?showtopic=1725&st=0

QUOTE(Dukes Mangola @ May 17 2006, 08:26 PM) [snapback]51580[/snapback]
But, stupid question time: How do I log out ? :p
[/b]
Run script - login again - logout before it starts killing BBClient.exe... :p

BTW Code modified.. so update your BBClient.vbs file: Right click bbclient.vbs > Edit; Change the code; Save the file (File > Save). :)
 
P

popcorn

Senior Member
Messages
3,318
Location
Mumbai
ISP
Some company Broadband(25mbps)
err guys...those two files take total of around 17MB RAM :(
 
T

TJS

Newbie
Messages
55
Location
NA
ISP
Sify
Disable launch of default homepage

To Disable launch of homepage (sify), add following code after the line Loop While ProAv = False

Code:
i = 0Do While i = 0If CheckAv("iexplore.exe") ThenKillProcess "iexplore.exe"Exit DoElseIf CheckAv("BBClient.exe") = False ThenWScript.QuitEnd IfLoop
http://imageshack.us
 
S

sidrulz

Newbie
Messages
3
Location
NA
hey Tjs also add script for blocking the bangloreindia page which pops up after sumtime of homepage!!