How to prevent any exe file from running in windows 10, win8, win7, vista, and Windows XP?

Sometimes, we don't want anyone run a specific program. Sometimes, we can not stop running a specific exe file even we kill it by task manager because some viruses can auto re-start running. If we can disable reading the exe file, we can prevent running it.

Is there a program that can disallow accessing to an exe in windows
Gilisoft File Lock does exactly that, and it does it easily and well. Just start protecting your files, folders and disk drives with File Locker, please download the File Lock software via button below:

The following steps will tell us how to use Gilisoft File Lock to block an exe file from running.

How to block an exe file from running with Gilisoft File Lock - Method 1

Please refer to the screenshot below with Arabic numerals step by step, and there are detailed instructions below the screenshot

Run Gilisoft File Lock, and then click on the "Deny Read" module.

Go to "Lock Files" under the module of "Deny Read".

Click on the "Add Files" icon to select the exe file you want to block and lock. Then the file will be add to the list. You can add files as many as you want.

When completes adding files to the list to lock or block, just click on the "Lock Files" button to lock them.

How to block an exe file from running with Gilisoft File Lock - Method 2

The easiest way to lock an exe file is right-click on the exe file that you want to block and select "GiliSoft File Lock"-->"Lock (Deny read+write+run)".
then the selected exe file will be blocked from running. You can refer to the picture below: