Run my application when system shutdown

Posted by Jayakumarv under C# on 2/10/2011 | Points: 10 | Views : 1674 | Status : [Member] | Replies : 5
i have an application(windows) using c# ,i need to run this application before system shutdown or log off ..




Responses

Posted by: Naimishforu on: 2/10/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Once you shutdown or log off PC, your application won't be able to run as Windows will force it to exit itself.

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/10/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
HI,

Is you requirement like when its about to shutdown u need to run some scripts?

Thanks
Karthik
www.f5Debug.net

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 2/10/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi Jayakumarv

i can't understand your requirement .. but it's not possible to run application after Shutdown

Best Regard's
Prabhakar

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Madhu.b.rokkam on: 2/10/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi,

Is it that you want to log something when your system shutdown or log off?? Can you please brief down you actual requirement? Because when the system is shud down it will force all the threads to stop.

Thanks and Regards
Madhu

Thanks and Regards
Madhu

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tripati.patro on: 2/18/2011 [Member] Starter | Points: 25

Up
0
Down
Do you want to run any kind of Windows Services or Batch Files before shut down?

B.Tripati Patro
Oracle Certified Associate

Jayakumarv, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response