Skip to main content

Posts

Showing posts with the label Environment Table

Environment Variables

All details about environment variables and their use in an installer. Format Environment Variables in Windows are denoted with percent signs (%) surrounding the name: %name% echo To display an environment variable's value in  cmd.exe , type  echo %name% . C:\>echo %USERPROFILE% C:\Users\Daniel set To  create/set  a variable, use  set varname=value : C:\>set FunnyCatPictures=C:\Users\Daniel\Pictures\Funny Cat Pictures C:\>set FunnyCatPicturesTwo=%USERPROFILE%\Pictures\Funny Cat Pictures 2 Environment variables set in this way are available for (the rest of) the duration of the Command Prompt process in which they are set, and are available to processes that are started after the variables were set. setx To  create/set  a variable  permanently , use  setx varname "value" : C:\>setx FunnyCatPictures "C:\Users\Daniel\Pictures\Funny Cat Pictures" [Restart CMD] C:\>echo %FunnyCatPicture...