Re: Where is prog that closes apps?

From: Lorry Weston (lorryweston_at_earthling.net)
Date: 08/27/04


Date: Fri, 27 Aug 2004 23:06:43 +0100


"Charles Otstot" <saries@notmyreal.address.com> wrote in message
news:%23bDqjrEjEHA.2544@TK2MSFTNGP10.phx.gbl...
>
> "Pegasus (MVP)" <I.can@fly.com> wrote in message
> news:uHyfVBEjEHA.2664@TK2MSFTNGP11.phx.gbl...
> >
> > "molsonexpert" <imdrunk@work.ca> wrote in message
> > news:%23VeHYxDjEHA.1204@TK2MSFTNGP15.phx.gbl...
> > >
> > > "Brett" <account@cygen.com> wrote in message
> > > news:c003b25a.0408270529.65330b74@posting.google.com...
> > > > I'd like to schedule certain applications to close at specific times
> > > > M-F. Which program will do this?
> > > >
> > > > Thanks,
> > > > Brett
> > >
> > > Task scheduler.
> > >
> > > steve.
> > >
> > >
> >
> > How can you close an application at a specific time with
> > the Task Scheduler?
> >
> Pegasus,
>
> I was wondering the same, not just with Task Scheduler but also with
psexec
> Unless the app executable has a terminate switch (which would work in Task
> Scheduler, also), I don't see an option with psexec to terminate an
> executable. Other than using "kill.exe", which requires that one know the
> PID or a variant that can ID process names, how would you shut down a
given
> app?
>
> (Not trying to be sarcastic, I'm just not aware of an option.)
>
> Charlie
>
> >
>
>

Kill will pattern match:

usage: KILL [options] <<pid> | <pattern>>*

           [options]:
               -f Force process kill

           <pid>
              This is the process id for the task
               to be killed. Use TLIST to get a
               valid pid

           <pattern>
              The pattern can be a complete task
              name or a regular expression pattern
              to use as a match. Kill matches the
              supplied pattern against the task names
              and the window titles.

I ran Calculator, then ran 'kill Calculator' - works for me...

C:\Documents and Settings\Lorry>kill Calculator
process calc.exe (1352) - 'Calculator' killed



Relevant Pages

  • Re: Where is prog that closes apps?
    ... >> the Task Scheduler? ... > Unless the app executable has a terminate switch (which would work in Task ... > Scheduler, also), I don't see an option with psexec to terminate an ...
    (microsoft.public.win2000.general)
  • Re: Where is prog that closes apps?
    ... >> steve. ... > the Task Scheduler? ... not just with Task Scheduler but also with psexec ... Unless the app executable has a terminate switch (which would work in Task ...
    (microsoft.public.win2000.general)
  • Re: Problem running a script on startup
    ... I built a vbscript that uses psexec to ... The script runs just fine from ... The Task Scheduler solution looked promising... ...
    (microsoft.public.win2000.registry)
  • Re: Problem running a script on startup
    ... I built a vbscript that uses psexec to ... The script runs just fine from ... The Task Scheduler solution looked promising... ...
    (microsoft.public.win2000.general)