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:\> $$

C:\fso\AMoreComplete.txt

0 comments

Discussion is closed.

Feedback usabilla icon