28.12.12

Kill the Window Process




Hi Everybody,
I would like to explain one of faq within this essay , how we kill the window process .
If any question, please feel free to contact me yenerturkeli@v-basic.net.

A Process component provides access to a process that is running on a computer. A process, in the simplest terms, is a running application. A thread is the basic unit to which the operating system allocates processor time. A thread can execute any part of the code of the process, including parts currently being executed by another thread.

The Process component is a useful tool for starting, stopping, controlling, and monitoring applications. Using the Process component, you can obtain a list of the processes that are running, or you can start a new process. A Process component is used to access system processes. After a Process component has been initialized, it can be used to obtain information about the running process. Such information includes the set of threads, the loaded modules (.dll and .exe files), and performance information such as the amount of memory the process is using.

You can use the code as below

Imports System.Diagnostics
dim my_process_name as string
Dim all_process As System.Diagnostics.Process
        For Each all_process In System.Diagnostics.Process.GetProcesses()
           Dim selected_process As String = my_process.Split("-").Trim()
         
            If all_process.ProcessName = selected_process Then
                all_process.Kill()
            End If
        Next

Have a nice day,
Yener Turkeli



4 comments:

  1. ok, I don't need my_process_name ...

    ReplyDelete
  2. U can write, this is just an example

    ReplyDelete
  3. Nếu bạn đang muốn đăng tin bán nhà hay bán đất hoặc bạn muốn mua nhà hay đất thì hãy đến với chúng tôi rao vat mien phi, với chất lương hàng đầu chúng tôi sẽ giúp các bạn , đăng tin và xem các khu vực nha dat quan go vap, ban dat quan 9, nha dat quan thu duc , nha dat quan binh tan , nha dat quan tan phu , nha dat quan tan binh và các khu vực khác trên toàn quốc với uy tín và hiệu quả cao khi bạn đến với chúng tôi.

    ReplyDelete