Quantcast
Channel: How to set file association in Windows Explorer? - Super User
Viewing all articles
Browse latest Browse all 5

Answer by Aanand Kainth for How to set file association in Windows Explorer?

$
0
0

If you prefer not to screw around with the registry, newer versions of Windows have an alternate:

Control Panel: Control Panel\Programs\Default Programs\Set Associations

  • Programs
  • Default Programs
  • Set Associations

Settings: Windows 10

  • System
  • Default Apps
  • Choose default apps by file type

In both cases, locate .PY and .PYW, and change their program to python.exe or pythonw.exe respectively (py.exe and pyw.exe).

This will automatically set the path to the executable followed by the missing in your case part: %1. This variable is replaced by the name of your py(w) file.


Viewing all articles
Browse latest Browse all 5

Trending Articles