On Thu, Jun 25, 2015 at 2:16 AM, Grant Edwards <invalid@invalid.invalid> wrote: > On 2015-06-24, Emile van Sebille <em...@fenx.com> wrote: >> Mangling would at least prevent it from executing. > > If you don't want a file to be executed, then don't make it > executable. Or doesn't Windows have any way to control whether a file > is executable or not?
Windows doesn't have the Unix file system concept of execute permission, no. If a file has the .exe extension and the first 512 bytes look like an appropriate header (MZ etc), Windows will happily run it. With other extensions, similarly - just create a .bat file and double-click it, it'll run the commands. ChrisA -- https://mail.python.org/mailman/listinfo/python-list