Where is prog that closes apps?

  • Thread starter Thread starter Brett
  • Start date Start date
B

Brett

I'd like to schedule certain applications to close at specific times
M-F. Which program will do this?

Thanks,
Brett
 
Brett said:
I'd like to schedule certain applications to close at specific times
M-F. Which program will do this?

Thanks,
Brett

Task scheduler.

steve.
 
Pegasus (MVP) said:
How can you close an application at a specific time with
the Task Scheduler?

My mistake. I was thinking in conjunction with batch file (e.g. net stop)
but this would only work if the app was installed as a service.

steve.
 
Pegasus (MVP) said:
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
 
Charles Otstot said:
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
 
Charles Otstot said:
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

You are entirely correct: I should have written "kill.exe", not
"psexec.exe".
 
Pegasus \(MVP\) said:
You are entirely correct: I should have written "kill.exe", not
"psexec.exe".

Please provide and example of syntax to kill Outlook.

When type in kill at the command prompt, I get this error:

'kill' is not recognized as an internal or external command,
operable program or batch file.

Also, will I need to put this in a batch file and run it through the scheduler?
Brett
 
Brett said:
"Pegasus \(MVP\)" <[email protected]> wrote in message

Please provide and example of syntax to kill Outlook.

When type in kill at the command prompt, I get this error:

'kill' is not recognized as an internal or external command,
operable program or batch file.

Also, will I need to put this in a batch file and run it through the scheduler?
Brett

kill.exe is not part of Windows 2000. You need to download it from some
Internet site. If you type this into a Google search box then you get lots
of
sites where you can get it from:

kill.exe download
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top