'C# limit program to run once day [closed]

I have a C# console app in an .exe file that I only want user to run once a day max. What is a good way to limit user to running this once a day only? I'm thinking writing and then reading logfile or writing to SQL table. Any better ways?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source