tandemino wrote:
> hi all
> I want to create this batch file :
>
> if (a.exe run) then (stop a.exe)
> else (run b.exe)
>
> where a.exe and b.exe are generic program
>
So you need tools to list/kill running programs/processes
The support tools for w2k have tlist/kill,
XP has tasklist/taskkill
The free pstools from
http://www.sysinternals.com contain pslist/pskill.
The also free cmdow from
http://www.commandline.co.uk can do both.
Since the options and the output of the tools varies, you should
state your os and preferrence.
HTH
--
Gruesse Greetings Saludos Saluti Salutations
Matthias
---------+---------+---------+---------+---------+---------+---------+