try this http://www.4guysfromrolla.com/webtec...1.update.shtml

and if that does not work here is some code that might help you..

VB Code:
  1. Private Type PROCESSENTRY32
  2.     dwSize As Long
  3.     cntUsage As Long
  4.     th32ProcessID As Long
  5.     th32DefaultHeapID As Long
  6.     th32ModuleID As Long
  7.     cntThreads As Long
  8.     th32ParentProcessID As Long
  9.     pcPriClassBase As Long
  10.     dwFlags As Long
  11.     szexeFile As String * 6400
  12. End Type
  13. Private Declare Function CreateToolhelpSnapshot Lib "kernel32" Alias "CreateToolhelp32Snapshot" (ByVal lFlags As Long, lProcessID As Long) As Long
  14. Private Declare Function ProcessFirst Lib "kernel32" Alias "Process32First" (ByVal hSnapshot As Long, uProcess As PROCESSENTRY32) As Long
  15. Private Declare Function OpenProcess Lib "Kernel32.dll" _
  16.   (ByVal dwDesiredAccessas As Long, ByVal bInheritHandle As Long, _
  17.       ByVal dwProcId As Long) As Long
  18. Private Declare Function TerminateProcess Lib "kernel32" (ByVal hProcess As Long, ByVal uExitCode As Long) As Long
  19. Private Declare Function CloseHandle Lib "Kernel32.dll" _
  20.    (ByVal Handle As Long) As Long
  21. Private Declare Function ProcessNext Lib "kernel32" Alias "Process32Next" (ByVal hSnapshot As Long, uProcess As PROCESSENTRY32) As Long
  22.  
  23. Public Function KillProcessByName(ExeName As String) As Boolean
  24.     Const PROCESS_ALL_ACCESS = 0
  25.     Dim uProcess As PROCESSENTRY32
  26.     Dim rProcessFound As Long
  27.     Dim hSnapshot As Long
  28.     Dim szExename As String
  29.     Dim exitCode As Long
  30.     Dim myProcess As Long
  31.     Dim AppKill As Boolean
  32.     Dim appCount As Integer
  33.     Dim i As Integer
  34.     On Local Error GoTo Finish
  35.     appCount = 0
  36.    
  37.     Const TH32CS_SNAPPROCESS As Long = 2&
  38.    
  39.     uProcess.dwSize = Len(uProcess)
  40.     hSnapshot = CreateToolhelpSnapshot(TH32CS_SNAPPROCESS, 0&)
  41.     rProcessFound = ProcessFirst(hSnapshot, uProcess)
  42.    
  43.     Do While rProcessFound
  44.         i = InStr(1, uProcess.szexeFile, Chr(0))
  45.         szExename = LCase$(Left$(uProcess.szexeFile, i - 1))
  46.         If Right$(szExename, Len(ExeName)) = LCase$(ExeName) Then
  47.             KillProcessByName = True
  48.             appCount = appCount + 1
  49.             myProcess = OpenProcess(PROCESS_ALL_ACCESS, False, uProcess.th32ProcessID)
  50.             AppKill = TerminateProcess(myProcess, exitCode)
  51.             Call CloseHandle(myProcess)
  52.         End If
  53.         rProcessFound = ProcessNext(hSnapshot, uProcess)
  54.     Loop
  55.  
  56.     Call CloseHandle(hSnapshot)
  57. Finish:
  58. End Function