>how to shut down window in the program ?
>can I make a batch file to close the window ?
Do you want to close another open application or re-start (or shutdown) the system? If the latest, check API section here. If the first, still check it (SendMessage API function)
If it's not broken, fix it until it is.
My Blog