Handling Shutdown Event
<p>Hi I have an Standalone application in which when an user logs in a abc.lck file gets created when the application is closed it gets deleted.I have used <strong>addshutdownhook()</strong> to delete the file when power supply is interrupted that is switching off the power supply when my application is running.My problem is the file is not getting deleted when I <strong>manually shutdown the system i.e by start-->shutdown</strong> and I should prompt the user with a message to save the changes using cofirm dailog box like in MS Word.Can some one help me 
Thanking u
Chaithu </p>
