I want to capture command window close event from Python.
In other words, when the user tries to close the command prompt window, script should detect it and display a message like Do you really want to exit - Yes/No
Any suggestions about how to implement this? Please help me in doing this.