in reply to Setting Win32 "Image Name" of a Perl Process

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.