tags:

views:

33

answers:

1

We all know that windows has the feature that you can right click on a file and numerous options are shown. Well you can add a value to this menu. I followed this guide : jfitz.com/tips/rclick_custom.html

Basically I have a script that runs when I right click on a certain file type. Alright, so everything is going flawlessly, however when I finish and try to test it out Windows tells me that it only accepts .exe's.

Is their a way around this without having to use py2exe or something similar?

**EDIT Ok , so if my script takes the first argument as it's parameter how would I put this into the registry?

"C:\Python26\pythonw.exe C:\Users\daved\Documents\Python\backup.py "%1"" ?

+2  A: 

yes, call pythonw.exe and pass the script path as a parameter

"C:\Python26\pythonw.exe" "C:\Users\daved\Documents\Python\backup.py" "%1"

It's also recommended (but not required) to use the extension .pyw when your script doesn't run in a console.

SpliFF