Batch files

N

Nick

How can I make a batch file to close calculator for
example after using a batch file to open calculator.
 
L

LiquidJ

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}
 

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

Top