View Full Version : Batch Programming Question


DeFilippis
01-25-06, 11:32 PM
Does anybody know if it is possible to shut off processes running in the background via batch? If so, could you explain how? I did a google search but couldn't find anything

Thank you--

Stryder
01-26-06, 06:29 AM
well theres the commandline:
TASKKILL /FI "IMAGENAME eq MSBLAST*"

This would work on XP Pro machines and kill anything named msblast (msblast.exe msblaster.exe etc) from the process list. It's not just possible to kill things by their image name (what the files called) they can also be called by their PID however PID's often change in the process list making it possible to terminate something that destables the OS.

You can find more information out about TASKKILL with the use of the /? switch.

You might also be interested to learn of TASKLIST which can be used to look at the processes running, and even give you a breakdown of what the SVCHOST's are actually doing.

TASKLIST /SVC

Great for debugging which SVCHOST is a virus or not etc.

You should be able to use TASKLIST in an old fashioned .BAT file. Which basically just means writing the Command you'd place in commandline into a text file and saving it with a .BAT extension. You can then either run those commands by executing the BAT file or by hooking up the BAT file to the Startup folder or Task Scheduler.

newbie56k
01-28-06, 04:52 PM
u noob, OK heres the trick

do this in cmd ok

net start

it will show u a bunch of stuff, that is network related.
now do

net stop "the process goes here"

i did this on the school comp, so i don't get haxored by my network teacher. the teacher process was called synchorieyes or something.