I have created a MFC dialog based application. Now I want to implement such a functionailty that I will be closing my application through command prompt.
And while closing of my application the ExitInstance() method of my application should get called.

Please guide me with the command which I should put in the command prompt to close my application in such a way.

Thanks in Advance,