Windows - Drag & drop on Python script?

Greg Ewing greg.ewing at compaq.com
Wed Jun 23 20:04:16 EDT 1999


How can I create an icon onto which I can drop a file,
and have it run a Python script with the dropped file
as an argument?

I've tried myriad combinations of .bat files, shortcuts,
etc., but nothing seems to work.

The obvious thing would seem to be to use a .bat
file, but the dropped file seems to end up as the
standard input or something, rather than getting
passed as an argument.

There *must* be a way of doing this, surely?

Thanks for any help,
Greg




More information about the Python-list mailing list