Tekforums

Chat => Entertainment & Technology => Topic started by: neXus on November 29, 2007, 17:44:27 PM

Title: posibility in a batch file?
Post by: neXus on November 29, 2007, 17:44:27 PM
is it possible to create a batch file that end tasks a number of processes?]

when I got to play some games I end task things like explorer.exe and reboot since it grows in memory use after a while on and some other stuff I use doing things I end task.

So is it possible to have a single run batch to do this?
Title: Re:posibility in a batch file?
Post by: BigSoy on November 29, 2007, 18:08:40 PM
taskkill /?
Title: posibility in a batch file?
Post by: M3ta7h3ad on November 29, 2007, 18:41:17 PM
Quote from: neXusis it possible to create a batch file that end tasks a number of processes?]

when I got to play some games I end task things like explorer.exe and reboot since it grows in memory use after a while on and some other stuff I use doing things I end task.

So is it possible to have a single run batch to do this?

yes.
Title: Re:posibility in a batch file?
Post by: Pete on November 29, 2007, 18:44:54 PM
taskkill dont always work. If not get pstools from here (http://www.microsoft.com/technet/sysinternals/Utilities/PsTools.mspx), extract to c:\pstools and then in the bat file put:

c:\pstools\pskill.exe taskname.exe

e.g. to kill notepad and start AOE3 do:

c:\pstools\pskill.exe notepad.exe
cd\progra~1\micros~2\ageofe~1\
start age3.exe

or whatever.

edit: You could also do -

c:\pstools\pskill.exe notepad.exe
cd\progra~1\micros~2\ageofe~1\
start /wait age3.exe
start c:\windows\notepad.exe

to reopen the closed app(s) once you leave the game.


Title: posibility in a batch file?
Post by: Clock'd 0Ne on November 30, 2007, 12:09:10 PM
Quote from: M3ta7h3adyes.

Since when did you turn into red? :lol:
Title: posibility in a batch file?
Post by: M3ta7h3ad on November 30, 2007, 13:07:29 PM
Quote from: Clockd 0Ne
Quote from: M3ta7h3adyes.

Since when did you turn into red? :lol:

lol was just answering his question :)

Didnt ask me how to do it :) asked me if it could be done! :D