TASKLIST

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

TASKLIST

#1 Post by Squashman » 12 Jan 2012 17:11

This is really irritating with with the way TASKLIST outputs the Window Title for Internet Explorer 8 on Windows 7 and this goes hand in hand with TASKKILL.

I have 3 instances of Internet Explorer Open (not tabs), each on a different website. When I run the TASKLIST command, the Window Title is only populated with the last IE Window that had focus. Basically the last one I was using.

So if for some reason you had a batch file that used TASKKILL to kill IE with a specific Window Title it does not find it.

Have not tested this with other browsers or versions of Windows.

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: TASKLIST

#2 Post by Ed Dyreen » 13 Jan 2012 02:50

'
Are u sure you have 3 processes running aswell :?:

I remember MS introducing a feature that would allow multiple instances to collapse into the same process. This proved to be a poor choice, as if one window were to crash all windows would. But it can be disabled...

There is a big difference in killing a window and killing it's process/es, if the above describes your case, you could try killing the window instead...

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: TASKLIST

#3 Post by Squashman » 13 Jan 2012 08:36

Definitely have 3 processes. Was going to post the output of TASKLIST to show you that the Window Title was blank for the other processes but figured that was understood. The only real way to identify which process is for which Window is to use the Window Title option.

aGerman
Expert
Posts: 4740
Joined: 22 Jan 2010 18:01
Location: Germany

Re: TASKLIST

#4 Post by aGerman » 13 Jan 2012 16:31

I can confirm both. Internetexplorer can run in several instances, but TASKLIST finds or returns only one window title.

Code: Select all

tasklist /fi "imagename eq iexplore.exe" /v

Firefox would open several windows but they run always in the same instace. (Tested on Win7)

Regards
aGerman

Post Reply