Results 1 to 7 of 7

Thread: End Multiple Processes With The Help Of Batch File

  1. #1
    Join Date
    Nov 2009
    Posts
    877

    End Multiple Processes With The Help Of Batch File

    Hello, I am using Windows xp operating system on my computer and want to know the steps for creating batch file which will simply end multiple processes which are running on my computer. How can I create such file? What are the contents to be added to create it? If this is possible then please provide me some help regarding that.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: End Multiple Processes With The Help Of Batch File

    I Don't have more knowledge about the Batch files, but you can use following small application to end multiple processes from your computer when you want. So, you can use one of it.
    • Process Killer
    • Task Killer
    • Gold Process Killer
    • Ultimate Process Killer

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: End Multiple Processes With The Help Of Batch File

    You need to use the following script to end multiple processes from your windows xp"
    Code:
    @echo off
    net stop "Automatic Updates"
    net stop "Computer Browser"
    net stop "Event Log"
    net stop "Network Connections" /y
    net stop "System Event Notification"
    net stop "Task Scheduler"
    net stop "System Restore Service" /y
    
    taskkill /F /IM Dap.exe /IM WLM.exe /IM dllhost.exe /IM Wisptis.exe /IM WLM.exe /IM iexplore.exe /IM wmiprvse.exe /IM Explorer.exe /IM DKService.exe /IM alg.exe /IM phasma3.exe  /IM wmiprvse.exe /IM qttask.exe
    
    mem.vbs
    mem.vbs
    
    taskkill /F /IM cmd.exe

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Re: End Multiple Processes With The Help Of Batch File

    I am using process killer for the same process. Process Killer is a very useful system utility, which helps its users to end desired system processes easily and comfortably. Sometimes a user can notice some problems in his computer like system slowdown, programs not responding and system hang phenomena. These problems are mainly caused when some of the processes consume a large portion of the computer’s CPU and memory. It is powerful and simple to use. So, you can also use it.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    Re: End Multiple Processes With The Help Of Batch File

    You can simply do the same with the help of command prompt. You just need to know the process which you want to stop. Suppose that you want to stop the Notepad from your computer then you can type the command below on your command prompt and stop the Notepad:
    Code:
    taskkill /IM notepad.exe
    It will cause the process to stop. So, by providing this command you can achieve the same which you want.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,295

    Re: End Multiple Processes With The Help Of Batch File

    You need to use the following format to create you batch file:
    Code:
    @echo off
    net stop "<Process Name>"
    taskkill <process name>
    Use it as per your requirement.

  7. #7
    Join Date
    Apr 2011
    Posts
    2

    idea Re: End Multiple Processes With The Help Of Batch File

    Hello guys,

    I have found a simple way to kill a task using the batch file...... it is as follows,

    the command is "taskkill"

    you can do this by,

    1. Knowing the PID of the process
    2. Knowing the image name of the process

    For example,
    If you want to end the notepad, then command is "taskkill /im notepad.exe
    where "im" is the image name of the process. i.e. notepad

    you can also end any process by using its PID also. the eg for this is,
    "taskkill /pid 5264" where pid is process identifier and it may be 5264....

    if you want to know the process name and process id, then u can see it in task manager. if pid is not displayed then go to view>select columns>process identifier in task manager..

    you can also force to end the process so as not to display any message box . you can do it by, adding the /f command to it......
    note that /f should be given as, "taskkill /f /im notepad.exe

    you can also enter any number of within a single command....... to do so, enter as, "taskkill /im program1 /im program2 /im program3 and so on" or use the pid of the process in the same way.......

    if you have any doubts you can type "taskkill /?" in command prompt to view the help.....

    try it out.........
    discover things.........
    share your thoughts........

Similar Threads

  1. how can i create a Batch file to kill some processes by name
    By Hansel Ortiz -[BrEcHaWarr] in forum Windows Server Help
    Replies: 7
    Last Post: 07-06-2012, 11:24 AM
  2. Multiple commands for a batch file in a for loop?
    By SANDESH49 in forum Software Development
    Replies: 4
    Last Post: 08-05-2012, 10:40 AM
  3. Multiple commands in batch file loop
    By Toshaan in forum Vista Help
    Replies: 10
    Last Post: 08-05-2012, 10:39 AM
  4. Autorun CD using Batch file for Multiple Executables
    By DANIEL 602 in forum Windows Software
    Replies: 5
    Last Post: 19-01-2010, 09:54 PM
  5. batch file to split multiple text files in half.
    By yammyguy in forum Windows Server Help
    Replies: 8
    Last Post: 11-05-2009, 06:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,567,878.31567 seconds with 17 queries