I want to change the title of the PowerShell window to the command line of the currently executing process inside it, just like CMD.EXE does.
Can I do this in PowerShell?
Is there some function like prompt
which is called when I execute a command in PowerSHell?
Best Answer
Do you want it for a small select number of executables? Or all exes?
One hack for a select number of executables would to do
Then just run cd c: cmd /c dir /s
And see the title change
And for all the commands
And then try ping 127.0.0.1
Its hacky, YMMV