I am just starting to write my first Python scripts and everything was fine, until yesterday when I tried to run a Python script in cmd. Usually, I type: cd Desktop, and than file.py. It always worked, but suddenly when I type file.py, it opens up the script in Notepad++ and it doesn't run the program in cmd. I hope that someone can help..
PATHenvironment variable and be sure that the path topython.exeis present.python file.py, well in case python.exe is in system pathfile association. Something happened that caused .py files to be associated with Notepad.exe.