Vbscript Close Program Gracefully

Feb 06, 2013 Hi guys. Through some internet searching, I figured out how to write a batch file that has a bunch of statements like the following to open a lot of.
Eclipse maven updating indexes takes forever to answer. At home when I click on 'update index' it works ok. It updates it from central mirror repo.maven.apache.org At work, doing the same operation it always fails trying to update it from repo1.maven.org (I don't know neither I care if because of firewall or proxy issues) I would like to know how to change it and force it to fetch it from one or another. This question might have been asked before. Every time I open my eclipse it takes forever to update the Maven repo indexes. I do not have any Maven Plugin installed.

Close Program Command
I want to terminate a number of processes, but I want to give each process the chance to save its data, ask the user about saving a file and even ignore the close request. So TerminateProcess is out of the question, because it kills the process instantly. Another way would be to use SendMessage/ PostMessage to send a WMCLOSE to the main window, unfortunately I don't know anything about the windows of the processes, I only have the process id, so FindWindow doesn't help either. Is there any other way to find the main windows of a process? In other words: Is there any way to terminate any process gracefully just like the task manager does when you click on ' End Task'? (and not 'End Process'). Enumerates all the top level windows in a process.
Gets the process and Id of each thread. You now have enough information to gracefully close any GUI application. You can send WMCLOSE messages to any window you wish to close. Many windows handle WMCLOSE to prompt the user to save documents.You can send a WMQUIT message using PostThreadMessage to the discovered threads to cause the message loop to terminate. User code is not allowed to call DestroyWindow from a different app or thread to the windows.
If the app does not respond to WMCLOSE or WMQUIT requests you're back in TerminateProcess land. This will not close console applications as the application process, and process that owns the window, are different. There is no real way to close console applications gracefully on Windows. They need to support some kind of graceful close mechanism.