Recommended Posts

Hey,

I'm wondering if anyone has a command line tool that can kill all uncritical applications / services in Windows XP. I prefer such a tool that requires no user intervention and runs completely hidden in the background. Meaning I do not want to see its window, etc. It won't be a problem as only I the system admin can run such tools so there will be no need to cancel this action.

I am looking for a tool that I can run before shutdown that will shutdown all the running applications; via a batch file. After which the PC will be restarted / shutdown; depending on what batch file is ran.

I already have a command line tool that I use to shutdown / restart the PC without user intervention so that is not a problem.

So any ideas would be great.

Thanks a lot,

Will

Link to comment
https://www.neowin.net/forum/topic/342355-kill-all-processes-command-line-tool/
Share on other sites

You could use the small utilitie called KILL, it is a command line tool which is used to kill running processes (ie. ones in taskmanager/processes). To use it all you do is place it in your windows or system32 folder and create a batch file with the syntax for example:

kill explorer.exe

This will kill the explorer process, so it can be used to kill a number of applications on startup.

You can download it here

hope this helps :)

  Mike_Wilson said:
You could use the small utilitie called KILL, it is a command line tool which is used to kill running processes (ie. ones in taskmanager/processes). To use it all you do is place it in your windows or system32 folder and create a batch file with the syntax for example:

kill explorer.exe

This will kill the explorer process, so it can be used to kill a number of applications on startup.

You can download it here

hope this helps  :)

586190269[/snapback]

Yeah I pefer process -q explorer.exe . ;)

Yeah I know thats currently how I do it. But sure would be nice to have it automatted and not have to edit the batch file everytime I want to add a new command to shutdown a new application when shuting down.

Take Care,

Will

TASKKILL /F /IM process.exe /T

NET STOP "Service Name"

SHUTDOWN -s -t 10

TASKKILL will do what you want, just replace te process.exe with whatever process you want to kill, make a new line for each process.

NET STOP will stop services, just replace Service Name with whatever the service says in the Services MSC.

SHUTDOWN will shutdown the computer with a 10 second delay, giving you a chance to save stuff or whatever.

I believe if you put the SHUTDOWN line in the same script, it will just scroll forever and not shut down. That is what I always experienced. So I just wrote a batch file with all the process and services I wanted to kill in one file, then at the end of it I would have it call the shutdown script. An excellent example of Windows command liines is available here...

http://www.robvanderwoude.com/index.html

  • 2 weeks later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.