scheduled tasks - Detecting "schtasks /end" in C# console application -


I have a console application that I run as a scheduled task.

I have the ability

Our deployment process uses the schtasks / end command to prevent it.

How can I stop this order in the C # application?

I tried to use the SetConsoleCtrlHandler but it did not get the event.

Thanks


Comments