Page 1 of 1

Hi, code to killtasks in taskmanager?

Posted: 02 Dec 2009 04:21
by goofan
Hi i need a small code that makes so that it opens the taskmanager(Ctrl+Alt+Del) or just runs it outside the taskmanager.
-however-
i wanna make so that i tell it to kill certain tasks in the taskmanager by just simply click the "KillTasks.bat"



-Thanks in advance
-Thomas

Posted: 02 Dec 2009 06:48
by !k

Code: Select all

taskkill /f /im explorer.exe

Posted: 02 Dec 2009 06:52
by goofan
Is there any other code needed? (im a very VERY big noob at batching)
or would that kill the task explorer.exe? (just to see if i got it right) :D thanks a bunch.
i can change the explorer.exe to whatever i want to kill any tasks? and just duplicate the code to kill more then one task? :D
-Thanks

Posted: 02 Dec 2009 07:59
by !k
kill more then one task:

Code: Select all

taskkill /f /im notepad.exe /im mspaint.exe /im calc.exe

for help run this code:

Code: Select all

cmd /k taskkill /?

and read text in black window

Posted: 02 Dec 2009 11:06
by goofan
ok thanks