I have recently installed the Anaconda distribution on Windows 7 (Anaconda 3-2.4.0-Windows-x86_64). Unlike IDLE, I can\'t right-click and open a py file in the Spyder IDE. I
The solution from JoeB152 worked perfectly for me!
If you are interested in adding the spyder icon (or any other) to the .py-files and if you would like to avoid the cmd-pop-up, I found out the following workaround which is feasible without admin rights:
.../AppData/Local/Continuum/anaconda3/Scripts/spyder.ico).Enjoy!
Environment: Windows 10, Conda 4.8.2, Spyder 4.0.1, Python 3.7