Don’t. Windows has internal means for that. Read up on the policy editor, and/or file access control.
If you’re admin and the “user” is not, policy (or simple ACL) will do the job; if the “user” is also an admin, they’ll be able to defeat your program fairly easily.
4
solved Is there a way to identify the Windows command prompt regardless of file name or location?