unattended stop and restart a program

  • Thread starter Thread starter ron
  • Start date Start date
R

ron

I know how to start a program in scheduled tasks, but can
you stop a program, and then restart it? A reboot of a
program only?
 
You can use kill.exe to stop any program. To restart it,
you just invoke it. This batch file will kill & restart Excel:

@echo off
c:\tools\kill Excel
"c:\program files\microsoft office\office\excel.exe"

kill.exe comes with the Win2000 Resource Kit.
 
Back
Top