Skip to content

Instantly share code, notes, and snippets.

@carlnc
Last active April 17, 2019 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlnc/e928a1e6c9ff406ab0e473f7554b0ad2 to your computer and use it in GitHub Desktop.
Save carlnc/e928a1e6c9ff406ab0e473f7554b0ad2 to your computer and use it in GitHub Desktop.
Location Variables (from https://ss64.com/nt/syntax-variables.html)
HomeDrive C:
SystemDrive C:
ProgramFiles C:\Program Files or C:\Program Files (x86)
ProgramFiles(x86)  C:\Program Files (x86)   (but only available when running under a 64 bit OS)
AllUsersProfile C:\ProgramData
ProgramData C:\ProgramData
Public C:\Users\Public
UserProfile C:\Users\{username}
HomePath c:\Users\{username}
LocalAppData C:\Users\{username}\AppData\Local
TEMP and TMP C:\Users\{username}\AppData\Local\Temp
AppData C:\Users\{username}\AppData\Roaming
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
SystemRoot C:\Windows
Path C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem;{plus program paths}
ProgramW6432 =%ProgramFiles%(but only available when running under a 64 bit OS)
PsmodulePath %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
WINDIR Set by default as windir=%SystemRoot%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment