Batch files

  • Thread starter Thread starter Nick
  • Start date Start date
N

Nick

How can I make a batch file to close calculator for
example after using a batch file to open calculator.
 
You could call a utility like pskill (available from www.sysinternals.com)
from your batch file to kill the calculator process. This isn't quite
"clean", since it aborts the process abruptly. It would probably be better
to write your own utility that sends WM_CLOSE to a particular window, and
call -=that=- utility from your batch file.


{L}
 
Back
Top