in reply to Changing the title of the command window on which the perl exe is run

A child cannot affect the parent.

Start a cmd.exe then run this

perl -e " exec qq[cmd.exe /k \x22title \x22quoted title\x22\x22] "
then type "exit".

Then type "exit" again.

First "exit" exits the cmd.exe with the title "quoted title" started from perl with exec, the second "exit" exists the original cmd.exe.

  • Comment on Re: Changing the title of the command window on which the perl exe is run
  • Download Code