Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



End Multiple Processes With The Help Of Batch File

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 14-01-2010
Member
 
Join Date: Nov 2009
Posts: 880
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.
Reply With Quote
  #2  
Old 14-01-2010
Devasis's Avatar
Member
 
Join Date: Jan 2008
Posts: 3,367
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
Reply With Quote
  #3  
Old 14-01-2010
Solomon's Avatar
Member
 
Join Date: May 2008
Posts: 4,056
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
Reply With Quote
  #4  
Old 14-01-2010
MrChris-'s Avatar
Member
 
Join Date: Apr 2008
Posts: 3,237
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.
Reply With Quote
  #5  
Old 14-01-2010
Calvin K's Avatar
Member
 
Join Date: Apr 2008
Posts: 3,479
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.
Reply With Quote
  #6  
Old 14-01-2010
Lillebror's Avatar
Member
 
Join Date: Apr 2008
Posts: 3,259
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.
Reply With Quote
  #7  
Old 21-04-2011
Emmerson Bonnat's Avatar
Member
 
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........
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "End Multiple Processes With The Help Of Batch File"
Thread Thread Starter Forum Replies Last Post
Multiple commands in batch file loop mrgou Vista Help 9 26-04-2011 09:04 PM
how can i create a Batch file to kill some processes by name Hansel Ortiz -[BrEcHaWarr] Windows Server Help 5 20-04-2011 06:11 PM
Autorun CD using Batch file for Multiple Executables DANIEL 602 Windows Software 5 19-01-2010 09:54 PM
batch file to split multiple text files in half. yammyguy Windows Server Help 8 11-05-2009 07:19 PM
Multiple commands for a batch file in a for loop? SANDESH49 Software Development 2 17-02-2009 07:03 PM


All times are GMT +5.5. The time now is 12:16 AM.