I perform some read/write operations on files in my app. It's still under development so for easiness I keep files locally.
In the beginning I want to check if app is started from protected directory (such as c:/Program Files) to avoid getting crash caused by lack of admin privileges. Is there any simple way to do it in C#?
I check some solutions, posted here, connected with checking read/write permissions but they don't work in my case.