Using Python scripts in Windows Explorer

Gabriel Genellina gagsl-py at
Fri Oct 20 22:02:20 CEST 2006

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.

>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)

Gabriel Genellina
Softlab SRL 

Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! -

More information about the Python-list mailing list