Using Python scripts in Windows Explorer

Ben Sizer kylotan at gmail.com
Mon Oct 23 06:53:32 EDT 2006


Gabriel Genellina wrote:
> At Friday 20/10/2006 12:20, Ben Sizer wrote:
>
> >I'd like to be able to drag a file onto a Python script in Windows
> >Explorer, or send that file to the script via the Send To context-menu
> >option, so I can then process that file via sys.argc.
> >
> >Unfortunately, I can't drag items onto the Python script, because
> >Windows doesn't recognise that the script is executable (unless I
> >double-click it, upon which it runs as usual, without the command line
> >parameter of course)
>
> Create a shortcut and drop the file over it.

Doesn't work; the mouse cursor changes to the "not permitted" sign and
when you release the mouse, nothing happens.

> >and won't set it as a drop target. And it won't
> >even appear in the Send To menu after the usual steps are taken to get
> >it there.
>
> Same here: put a shortcut to the script on your SendTo folder
> (wherever it resides)

That is what I meant by 'the usual steps'. :)  It doesn't work.

-- 
Ben Sizer




More information about the Python-list mailing list