In microsoft.public.win2000.cmdprompt.admin =?Utf-8?B?MTBfYV9j?=
wrote:
> Michael
> "Jerold Schulman" wrote:
>
>> On Mon, 3 Jan 2005 20:11:02 -0800, 10_a_c
>> <(E-Mail Removed)> wrote:
>>
>> >Hello Group:
>> >
>> >
>> >I want to be able to write a batch file to check to see if IE is
>> >open. Is there a DOS command which can do this?
>> >
>> >Thanks in advance.
>> >
>> >
>> >Michael
>>
>> See tip 6313 in the 'Tips & Tricks' at http://www.jsiinc.com or
>> pulist.exe (tip 3737)
>>
>> set IE=N
>> for /f "Tokens=1" %%a in ('tasklist^|Find /I "iexplore.exe"') do
>> (
>> set IE=Y
>> )
>> If "%IE%" EQU "Y" go IEisRunning
> Jerold:
>
>
> Thanks for the link. I have W2K Server SP4 on my laptop and have
> recently downloaded the support tools which includes "tlist". The
> link gives some expamples but includes "Tokens" which the batch
> complains about.
You can change to use "token 2" or just use pslist.ese (Sysinternals)
and change it from
('tasklist^|Find /I "iexplore.exe"')
to
('pslist^|Find /I "iexplore"')