how to add menu item in folder right click that calls python script

0

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.

Ciasto piekarz

Posted 2013-12-30T04:44:54.203

Reputation: 133

Answers

0

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.

envolyse

Posted 2013-12-30T04:44:54.203

Reputation: 48