PowerTip: Retrieve Last Token Received by PowerShell

Doctor Scripto

Summary: Learn how to retrieve the last token that was received by Windows PowerShell.

Hey, Scripting Guy! Question How can I retrieve the last token received by Windows PowerShell?

Hey, Scripting Guy! Answer Use the $$ automatic variable:

PS C:\> notepad C:\fso\AMoreComplete.txt

PS C:\> $$



Comments are closed. Login to edit/delete your existing comments

Feedback usabilla icon