Sai Yang

Sai Yang

  • NA
  • 136
  • 27.5k

how to auto search for solution folder on runtime?

Jun 28 2018 3:02 AM
"Sharp Project" (is the folder name which contain my project). It may copied to anywhere but I need to find it from pc HD untill string path matches "Sharp Project" then it does something to the .exe of my project inside the folder "Sharp Project". Just to protect users transfer or copy this project to use as their own project because this illegal for me.
 
Or
 
if my project is run the string path finds for the solution folder and remove exe file to prevent illegal user.
 
I am using C# language winform.
 
I need to know how to do it? How to find the solution folder? How to remove the exe file and how to auto search for the solution folder?
 
Thank you a lot.

Answers (1)