Results 1 to 8 of 8
  1. #1
    mralexlee's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    139
    My Mood
    Bitchy

    Exclamation How do i close explorer.exe or taskmgr in vb 2008

    Hello Pro Programmers

    Kindly help me something

    Recently i"m doing a application that close explorer.exe and reopen or taskmgr

    so i code it

    kill "explorer.exe" or kill "taskmgr.exe" nothing will happen!

  2. #2
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Code:
    Process.GetProcessesByName("explorer")(0).Kill

  3. #3
    mralexlee's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    139
    My Mood
    Bitchy
    Quote Originally Posted by Biesi View Post
    Code:
    Process.GetProcessesByName("explorer")(0).Kill
    Dim p() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("tas kmgr")
    If p.Length = 1 Then
    p(0).Kill()

    will this code also works ? and how do i know the process was running in real time ?

  4. #4
    mralexlee's Avatar
    Join Date
    Mar 2013
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    139
    My Mood
    Bitchy
    Quote Originally Posted by mralexlee View Post
    Dim p() As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessesByName("tas kmgr")
    If p.Length = 1 Then
    p(0).Kill()

    will this code also works ? and how do i know the process was running in real time ?
    arghh ur code not work , the explorer will still reopen back !

  5. #5
    Biesi's Avatar
    Join Date
    Dec 2011
    Gender
    male
    Posts
    4,993
    Reputation
    374
    Thanks
    8,808
    My Mood
    Twisted
    Code:
    Process.Start("taskkill", "/im explorer.exe /f")
    or
    Code:
    Shell("taskkill /im explorer.exe /f")

  6. #6
    T.Vader's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    1
    Here is the code for u .

    Code:
     Private Sub kill()
                 While True
                  For Each P As Process In Process.GetProcessesByName("Explorer")
                     P.Kill()
                Next
            End While
    Last edited by T.Vader; 11-07-2013 at 10:46 AM.

  7. #7
    5555satan's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Location
    i dont remember where i live
    Posts
    296
    Reputation
    10
    Thanks
    240
    My Mood
    Paranoid
    try this:
    Code:
    Public Class Form1    
    Private Sub Killit(sender As Object, e As EventArgs) Handles Button1.Click
            Timer1.Start()
        End Sub
        Dim p() As Process
        Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
            p = Process.GetProcessesByName("Process name")
            If p.Count > 0 Then
                Process.GetProcessesByName("Process name")(0).Kill()
                MessageBox.Show("Done")
            Else
                Application.Exit()
            End If
        End Sub
    End Class
    adjust the timer to slow but not too slow
    Press Thanks if i helped you / if you liked my signature



    Add me on skype: ReFusioNN-

  8. #8
    ShockwaveHF's Avatar
    Join Date
    Mar 2012
    Gender
    male
    Posts
    17
    Reputation
    10
    Thanks
    280
    My Mood
    Fine
    I suggest you do something like this

    Make sure to import threading
    Code:
    Imports System.Threading
    Code:
    Private Sub KillExplorer()
            While True
                Process.GetProcessesByName("explorer")(0).Kill()
                Thread.Sleep(10) //Avoids high memory/cpu usage
            End While
        End Sub
    To call it just do the following under a button or the form load event:

    Code:
     Dim explorerThread As New Thread(AddressOf KillExplorer)
     explorerThread.Start()

Similar Threads

  1. how to get you d3d.exe hack to work
    By uwilldie in forum Blackshot Hacks & Cheats
    Replies: 0
    Last Post: 04-22-2009, 09:26 PM
  2. How Do I Repack Engine.exe
    By tzie13 in forum Combat Arms Hacks & Cheats
    Replies: 0
    Last Post: 10-17-2008, 08:28 PM
  3. make .vbp file into .exe... like idk how to make it a exe
    By Oneirish in forum Visual Basic Programming
    Replies: 3
    Last Post: 03-29-2008, 07:26 AM
  4. Dammit To Hell, I have A DLL virus attaching to my explorer.exe
    By radnomguywfq3 in forum Hardware & Software Support
    Replies: 6
    Last Post: 10-22-2007, 03:28 PM
  5. how to safe a standard exe file (trainer) with vb6??
    By 123456789987654321 in forum WarRock - International Hacks
    Replies: 7
    Last Post: 06-08-2007, 08:21 PM