Summary: Learn how to retrieve the last token that was received by Windows PowerShell.
How can I retrieve the last token received by Windows PowerShell?
Use the $$ automatic variable:
PS C:\> notepad C:\fso\AMoreComplete.txt
PS C:\> $$
C:\fso\AMoreComplete.txt...
Summary: Microsoft Scripting Guy, Ed Wilson, presents a tip from the Charlotte User Group meeting about using PSReadLine.
Microsoft Scripting Guy, Ed Wilson, is here. One really big tip that came out during the Charlotte User Group meeting was to use the PSReadLine module. It provides is syntax highlighting, which makes it ...
Summary: Find the path to the current user's home directory in Windows PowerShell.
How can I easily find the current user's home directory for a script I am writing?
Use the $home automatic variable:
PS C:\> $HOME...
Summary: Microsoft Scripting Guy, Ed Wilson, talks about Windows PowerShell tips and tricks from the Charlotte User Group meeting.
Microsoft Scripting Guy, Ed Wilson, is here. Last week was a special meeting at the Charlotte Windows PowerShell User Group. It followed immediately after the Windows PowerShell Summit, and as a result, the user ...
Summary: Easily find the current directory in Windows PowerShell.
How can I return a path object that contains information about the current working directory in Windows PowerShell?
Use the $pwd automatic variable:
PS C:\> $pwd...