When I give the path of a .py
file to cmd.exe , It run that file automatically using Python.(I added the path of python to PATH Environment Variable already).
I want know:
1- how cmd.exe recognize that my .py
file must run with python?
2- If I want to remove .py from the end of my file name, And replace it with .wxyz
(for example), How I can make cmd.exe behave with that file such as a .py
file? (In the other word I mean I want to add .wxyz
extension to the list of files that run with python)