Somebody may well prove me wrong on this, but I am unaware of any mechanism for changing the image name of a running Win32 process.

The best suggestion I have is that you create a renamed copy of perl.exe for each application and a .cmd file with the same name that runs the appropriate .pl file using the appropriately named .exe. The executable is only ~40kb, so the space requirements are minimal. By placing the .cmd file (or a .bat create with pl2bat.pl with edits), in the path, you will be able to run yourapp.pl using the command line yourapp which will run yourapp.cmd, which will run yourapp.exe yourapp.pl.

Not elegant, but simple to arrange, with minimal requirements, and it achieves the aim of having different names appear in the tasklist, whilst allowing each of those executables to share the majority of runtime ram because they would share the one instance of perl5x.dll.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re: Setting Win32 "Image Name" of a Perl Process by BrowserUk
in thread Setting Win32 "Image Name" of a Perl Process by cormanaz

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.