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: 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
The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.
0 comments