Hello, this is actually two questions is one post:

1. I understand that I can edit the windows registry (somewhere in hkey_classes) to create a single explorer context menu item that can launch my perl script. Is there a way to create context item with sumbenus or icons - sort of like winzip or 7zip has? I'm thinking that this requires some dll trickery, that is beyond my understanding - is something like that possible with perl?

2. Suppose I create that single menu item that launches my script (thru the registry). When I select multiple files in explorer and select the context menu item, it launches multiple instances of my script, each for one file. What should I do to drive all the arguments into one instance of my program (again, like the zip thingies do)? I have worked around that by putting my script in the "Send To" folder in the past, but that one has also its drawbacks.


In reply to Hooking scripts to context menu items in windows explorer by pht

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.