To do this all you got to do is open regedit. Then navigate to hkey_classes_root/*/shell. Right click on "shell" and select "new" and then select "key" and then name it. What ever you name this key is what will show up on the right click menu. So if you name it "This is a test key" then that is what will show up on the right click menu.
Next, right click on the key you created and select "new" and then "key" again. This time name this key specifically "command". Once you have named it, you edit the value. I have a script called reverse.pl, so when I edit the value, i put in there "C:\perl\bin\perl.exe C:\users\james\dropbox\scripts\reverse.pl %1" the when I right click a file, it will have that option to run that script per each right clicked file.

Once you do this, you should be able to right click any file, and the command will be right in right click context menu.

In reply to Re^4: How do I start perl without having a "cmd.exe" window (wperl) by james28909
in thread How do I start perl without having a "cmd.exe" window by mark4

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.