how to add a menu item to any folder right click in windows explorer that passes the selected folder as argument to the python script ?

I have written a tool in python that takes the folder path as argument and do the slideshow of the images in that folder, for which I want to do this.


Open regedit and create a new key in HKEY_CLASSES_ROOT\Directory\shell with name Slideshow and modify value of Default (by right clicking on it in right pane) to Start slideshow.

Then you need to create another key in HKEY_CLASSES_ROOT\Directory\shell\Slideshow with name command. Modify Default value similarly to myscript.py %1.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.