Variáveis de ambiente


Variável de ambiente é uma variável de um sistema operacional que geralmente contém informações sobre o sistema, caminhos de diretórios específicos no sistema de arquivos e as preferências do utilizador. Ela pode afetar a forma como um processo se comporta, e cada processo pode ler e escrever variáveis de ambiente.

Para listar as variáveis de ambiente definidas no seu Windows, sigas os pasoss abaixo:

Passos:

1) Abra o Prompt de Comando

2) Digite o comando:


set

Vamos ver a lista de variáveis default:

%ALLUSERSPROFILE% - Location of the All Users Profile, typically something like C:\Documents and Settings\All Users

%APPDATA% - Location where applications store their data.

%CommonProgramFiles% - Location of Common Files

%CommonProgramFiles(x86)% - Location of Common Files

%CommonProgramW6432% - Location of Common Files

%COMPUTERNAME% - The name of the computer

%ComSpec% - The path to the command shell executable (for example: C:\WINDOWS\system32\cmd.exe)

%FP_NO_HOST_CHECK%

%HOMEDRIVE% - The user's home directory's drive letter

%HOMEPATH% - The path to the user's home directory (without %HOMEDRIVE)

%HOMESHARE% - The network path to the user's shared home directory

%LOGONSERVER% - The name of the domain controller that validated the current logon session

%NUMBER_OF_PROCESSORS% - The number of processors available

%OS% - The name of the operating system (for example Windows_NT)

%PATH% - The paths separated by semicolons used to search executable files

%PATHEXT% - List of file extensions that are considered to be executable

%PROCESSOR_ARCHITECTURE% - The chip architecture of the processor. Possible values: x86 and IA64

%PROCESSOR_IDENTIFIER% - Description of the processor (for example: x86 Family 6 Model 9 Stepping 5, GenuineIntel)

%PROCESSOR_LEVEL% - The model number of the processor (for example: 6)

%PROCESSOR_REVISION% - The revision number of the processor (for example: 0905)

%ProgramFiles% - Location of Program Files

%ProgramFiles(x86)% - Location of Program Files

%ProgramW6432% - Location of Program Files

%PROMPT% - The command prompt settings for the current interpreter

%SESSIONNAME%

%SystemDrive% - The drive containing the Windows XP root directory (for example: C:)

%SystemRoot% - The location of the Windows XP root directory (for example: C:\WINDOWS)

%TEMP% and %TMP% - The default temporary directories that are used by applications. Some applications require TEMP and others require TMP

%USERDOMAIN% - The name of the domain that contains the user's account

%USERNAME% - The name of the currently logged on user

%USERPROFILE% - The profile for the current user, typically something like C:\Documents and Settings\Rene (for User Rene)

%windir% - The location of the system directory (for example C:\WINDOWS)


Fonte: http://www.adp-gmbh.ch/win/misc/environment_variables.html#allusersprofile




Comentários

Copyright © 2018 Anderson Bravo
www.andersonbravo.com.br
anderson@andersonbravo.com.br