윈도우 환경변수 USERPROFILE

1 개요[ | ]

%USERPROFILE%
$env:USERPROFILE
윈도우 환경변수 USERPROFILE

2 PowerShell[ | ]

doscon
Copy
PS C:\Users\user1> echo $env:USERPROFILE
C:\Users\user1
PS C:\Users\user1> echo $env:HOMEDRIVE$env:HOMEPATH
C:\Users\user1
PS C:\Users\user1> echo $env:HOMEDRIVE
C:
PS C:\Users\user1> echo $env:HOMEPATH
\Users\user1

3 cmd[ | ]

doscon
Copy
C:\Users\user1>echo %UserProfile%
C:\Users\user1
C:\Users\user1>set USERPROFILE
USERPROFILE=C:\Users\user1

4 같이 보기[ | ]