I have one c# application that is task management application.
when that application is saved any task at that time I save that task into DB and as well as I write one notepad file with this task details in specific folder (in this folder only one notepad file is available at same time).
but my problem is that when user press system shutdown button at that time i want to open that notepad file. In short I want to run some c# script just before system shutdown.
I think it is possible with windows service but how ? I don't know
Please suggest me Thanks is advance.