I want my application to run by a certain name, example:"Coisinho.exe" and if they change it to any other name, it would be a "violation of the software" because it is supposed to be named that way so that the other components work properly. Basically if they the change application name I want it to shutdown right after.
Asked
Active
Viewed 59 times
1 Answers
4
If System.AppDomain.CurrentDomain.FriendlyName <> "Coisinho.exe" Then
Application.Exit() /// in a console-app: Environment.Exit(1)
Return
End If

Tim Schmelter
- 450,073
- 74
- 686
- 939