Python: Make a file temporarily unexecutable <p>I'm writing a simple antivirus that checks for very specific files and patterns, and something I want to implement is a way to make a named file unexecuteable. By this I mean that the computer will realize that the file exists, and has a file extension that would usually launch an application or it's own code, but will not be able to execute it until the user gives the ok.</p> <p>So given the filename, how could I make a file unable to be executed by the windows operating system? </p>