![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | 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 |
| | #2 (permalink) | ||||||||||||
| Guest | 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
| ||||||||||||
| | #3 (permalink) | ||||||||||||
| Guest | Re: Updating window title bar to current location >You need put it in your $profile prompt function. If you don't have the prompt
charm ! Marc | ||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I keep the current window on top as new one loads? | mattfbuelow | Network & Internet | 4 | 1 Day Ago 10:56 AM |
| rundll code to close current window | ldvg | General Discussion | 2 | 07-11-2008 05:17 PM |
| Re-setting the window title when PSCX is installed | Duncan Smith | PowerShell | 2 | 04-08-2008 11:00 AM |
| Vista - ? Mark - Current window Help | Rox | Vista General | 6 | 08-21-2007 06:19 AM |
| How do I change the colours of window title bars? | =?Utf-8?B?aW1hY2tlbg==?= | Vista General | 9 | 07-24-2006 06:47 AM |