Ctrl-End it All
Here’s a great hint from one of our Windows PowerShell PMs. We all know that you can interrupt a command by typing Ctrl+C, but did you know that you can erase the end of a typed command line by pressing Ctrl+End, just like in Cmd.exe?
The Ctrl+End sequence erases all characters at or after the cursor point on the command line.
Type a command, like: get-itemproperty HKLM:\Software\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
(Be sure to use tab-completion to save strokes!)
Use the back arrow key (ß) to place the cursor under the “S” in “ShellIds.”
Now you have: get-itemproperty HKLM:\Software\Microsoft\PowerShell\1\
so you can type another useful command, like:
Very handy. And you get it free with Windows PowerShell.
June Blender [MSFT] Senior Programming Writer Windows PowerShell