Run Python Script on Selected File

前端 未结 4 1104
星月不相逢
星月不相逢 2020-12-07 17:57

I would like to write a python script that would upload any file I select in Windows Explorer. The idea is to select any file in Windows Explorer, right-click to display fil

4条回答
  •  悲哀的现实
    2020-12-07 18:53

    This webpage Adding Windows context-menu actions has a nice python script that will register a context menu to pass the file path to your python script. I have not tried but it looks easy to modify this sample to what you need to do. Plus, this way it is one click less than sendTo solution I guess.

提交回复
热议问题