my application run when i press shutdown or logOff button

Posted by Jayakumarv under C# on 3/1/2011 | Points: 10 | Views : 1410 | Status : [Member] | Replies : 1
i have created one application(C# windows) for temp and recycle Bin temporary file clear operation and it executed fine.but my application run when i press shutdown button or log Off Button.


Posted by: Krkc on: 3/1/2011 [Member] Starter | Points: 25

Sorry, but do you want your app to run when you LOGOff or Shutdown?

If so, try following the below steps.

1. start - run - gpedit.msc
2. computer configurations - windows settings - scripts
3. right click Shutdown and ADD your application.


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

Login to post response