Is there any shell extension for Explorer that would execute text files with a
#! shebang at the beginning?
You're very much in conflict with the Microsoft model for files. In the POSIX model, the filename doesn't dictate whether a file is executable, at all. That's solely the province of the permissions. In the Microsoft model used in Windows Explorer, whether a file is executable is also determined by its filename, in particular by the extension. Hence the
So, with the proviso that this is restricted to files with the
If you want to use
If your text file happens to by a Python File then you can do exactly what you want using pylauncher.