topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 8:25 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: looking for a program to close other program in a batch  (Read 8161 times)

masu

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 401
    • View Profile
    • Donate to Member
looking for a program to close other program in a batch

e.g. I want to close all unnecessary programs if I want to start playing a game.
Therefore this program should auto. close all programs which I have defined before.
Do you know which program can do this?
Find+Run Robot 2.90.01
Windows 7

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,885
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #1 on: May 22, 2011, 10:06 AM »
Yes, I recently requested something very similar for when I am watching movies and member 4wd created Movie-ize, which did the task very well.

You set it up with the apps you want it to close and it will check if any are running and if they are, close them. Then later it will restart those apps again for you, but only the ones it closed. You only have to set it up once with all the apps you could possibly want closed, then it's just one click to do the job.

ha14

  • Participant
  • Joined in 2010
  • *
  • default avatar
  • Posts: 276
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #2 on: May 22, 2011, 10:56 AM »
Hi
there taskmgr pro which is a shareware and integrates itsel to taskmgr, you can edit a process kill list and saved it then evrytime you play your games you activate that list.
http://www.taskmgrpro.com/

Auto Kill Any Process
http://akmasolutions...ill-any-process.html

« Last Edit: May 22, 2011, 11:13 AM by ha14 »

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,566
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #3 on: May 22, 2011, 11:02 AM »
SmartClose


SmartClose is a free program that automates the process of closing all running programs. It can also save the state of the system to a system snapshot, so all the programs that have been closed can be easily restarted later by SmartClose.


2011-05-22_180000.gif


Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,629
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #4 on: May 22, 2011, 12:11 PM »
taskmgr pro
Auto Kill Any Process
SmartClose
These would have fitted nicely in the previous request post that brought us eventually Movie-ize, and would have saved 4wd a bit of effort. :o But I'm quite sure he enjoyed creating Movie-ize :D

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,939
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #5 on: May 22, 2011, 02:14 PM »
1 - Open a command shell
2 - In this window use 'sc' to find out the names of the services you want to turn off
3 - Either in this window or in the normal Windows GUI, create a .bat file
4 - In this file for each of the services you want to stop, fill in the following:
     NET STOP <service name>
5 - Create a shortcut to this file to your desktop or wherever you want to store it

When the time comes to play a game/see a movie/whatever, use the shortcut or execute the .bat file, which will work always. If you have only one version of Windows in your LAN/set of computers, you can copy this file without problems to each system and it will work as well.

When you need to enable the turned-off services, see the previous mentioned steps and replace step 4 with:
NET START <service name>

If you run multiple versions of Windows, check for each version the services you want to stop and just add them to the previously created files.

Nothing more to it, this solution works always in every version of Windows, from now till kingdom come (darn, one day too late... ;)).



rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 3,205
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #6 on: May 22, 2011, 03:12 PM »
Taskill v1.02 [6kB] (freeware).
Taskill is a process viewer and killer. It works in GUI or CLI mode and can kill multiple instances of the same task in one go.

I don't doubt you could do it with PowerPro, too...  but don't ask me how.

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #7 on: May 22, 2011, 10:16 PM »
Just make a kill file one name per line.
Just use exe name without path such as "notepad.exe"

You can easily spiff up this AutoIt3 code with a few niceties.


#include <file.au3>
Dim $aRecords
If Not _FileReadToArray("KillFile.txt",$aRecords) Then
   MsgBox(4096,"Error", " Kill File to Array     error:" & @error)
   Exit
EndIf
For $x = 1 to $aRecords[0]
    While ProcessExists($aRecords[$x])
ProcessClose($aRecords[$x])
Sleep(250)
Wend
Next

edit: this is just for regular exe files.  Follow Shades advice for services etc..
edit2: changed it to a While loop in case there are multiple instances of a process.
edit3: If you want to have some fun with it, very easy to pass the name of the kill file on the command line.  See AutoIt3 help section Running Scripts for how to use $CmdLine.
« Last Edit: May 22, 2011, 11:51 PM by MilesAhead »

Bionic71

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 134
    • View Profile
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #8 on: May 22, 2011, 10:56 PM »
This program lets you close all running applications with just a single click.

http://www.ntwind.co...ities/close-all.html

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: looking for a program to close other program in a batch
« Reply #9 on: May 22, 2011, 11:41 PM »
No smart comments about the reset button? Shucks...  :'(

;)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker