News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

posibility in a batch file?

Started by neXus, November 29, 2007, 17:44:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neXus

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?

BigSoy

"Within your 'purview'? Where do you think you are, some f**king regency costume drama? This is a government department, not some f**king Jane f**king Austen novel!"

M3ta7h3ad

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.

Pete

taskkill dont always work. If not get pstools from here, 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.


I know sh*ts bad right now with all that starving bullsh*t and the dust storms and we are running out of french fries and burrito coverings.

Clock'd 0Ne

Quote from: M3ta7h3adyes.

Since when did you turn into red? :lol:

M3ta7h3ad

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