![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Updating window title bar to current location Folks, I would like to show the current location on my PowerShell window's title bar. I can achive that initially by having this line in my "profile.ps1": $host.UI.RawUI.WindowTitle = "$(Get-Location)" How can I get it to constantly update, whenever I issue a "cd" or "Set-Location" command? Is there a way to trigger the title bar to update to reflect the current location? Thanks! Marc |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Updating window title bar to current location Hi Marc You need put it in your $profile prompt function. If you don't have the prompt function in your $profile you can create one : function Prompt{ $host.ui.rawui.windowtitle = "$pwd" } ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Hebrew weblog: http://blogs.microsoft.co.il/blogs/scriptfanatic Quote: > Folks, > > I would like to show the current location on my PowerShell window's > title bar. > > I can achive that initially by having this line in my "profile.ps1": > > $host.UI.RawUI.WindowTitle = "$(Get-Location)" > > How can I get it to constantly update, whenever I issue a "cd" or > "Set-Location" command? Is there a way to trigger the title bar to > update to reflect the current location? > > Thanks! > Marc |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Updating window title bar to current location >You need put it in your $profile prompt function. If you don't have the prompt Quote: >function in your $profile >you can create one : > >function Prompt{ $host.ui.rawui.windowtitle = "$pwd" } charm ! Marc |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Activeate a window by hovering over it (THE TITLE BAR) with the mouse | Vista General | |||
| Get window title from PID | VB Script | |||
| Please help with wierd problem - window stuck with title bar only | Vista General | |||
| Re-setting the window title when PSCX is installed | PowerShell | |||
| How do I change the colours of window title bars? | Vista General | |||