[San-Diego-pm] Detect invocation method?

Brian Manning elspicyjack at gmail.com
Fri Dec 10 11:33:51 PST 2010


On Fri, Dec 10, 2010 at 11:31 AM, Brian Manning <elspicyjack at gmail.com> wrote:
> 2010/12/10 Reuben Settergren <ruberad at gmail.com>:
>> Is there any way to package up a perl script (or .bat?) such that input
>> file(s) can be selected with the mouse, and dragged into the icon for the
>> script, so that the script would then run with the (full?) paths to the
>> selected files as its command-line arguments? (This is a mac paradigm,
>> right? I've never seen this on windoze or unix)
>
> I don't know what Perl on Windows (it sounds like that's what you're
> using) does with files that are dropped onto Perl scripts; I guess it
> would be up to your Perl distribution and how it installs itself into
> Windows, i.e. what shell hooks it adds when it installs, and not a
> function of Perl itself.

Looks like people make .cmd files and/or hack up their Windows
registries to do this.

http://stackoverflow.com/questions/705851/how-do-i-create-drag-and-drop-strawberry-perl-programs

Thanks,

Brian


More information about the San-Diego-pm mailing list