a software written in python to change the extension of all existing exe files on a system to a randomly generated integer would prevent a conventional virus as knowing the file is an executable and hence from infecting it. i know there are easy ways of getting around this. so this method cant be widespread. but would it work on 1 machine ?

one could write a program to run these exe files with integer extensions quite simply

a software written in python to change the extension of all existing exe files on a system to a randomly generated integer would prevent a conventional virus as knowing the file is an executable and hence from infecting it. i know there are easy ways of getting around this. so this method cant be widespread. but would it work on 1 machine ?

one could write a program to run these exe files with integer extensions quite simply

Or determine it's executable from it's content, .exe files have a special header on Windows systems don't they? I'm unsure, sorry. It depends on the virus, I would say.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.