|Don't ask to ask, just ask|
Re: Changing the title of the command window on which the perl exe is runby furry_marmot (Pilgrim)
|on Apr 30, 2011 at 20:29 UTC||Need Help??|
Wow. The snarkiness is flying today! And yet no one has the answer! Kuh-ching!
First, an explanation of why your approach doesn't work. When you run system from Perl, you are running a new shell, which is to say a new copy of CMD.exe, which has its own environment. You type title <something> and it works, but as soon as the new shell exits, you're back in the parent shell, which never had its title changed. You have to do it from inside, via the Win32 API.
That will change the title for the duration of your script. When the script ends, the title will revert to what it was before you ran the script. You can change the title as much as you want.