티스토리 뷰

System.SysUtils.GetEnvironmentVariable

Delphi

function GetEnvironmentVariable(const Name: string): string;

Properties

Type

Visibility

Source

Unit

Parent

function

public

System.SysUtils.pas

System.SysUtils

System.SysUtils

Description

Retrieves an environment variable value.

Call GetEnvironmentVariable to retrieve the value of an environment variable, passed as Name, for the current process.

Note: The case of the specified environment variable Name is ignored.

The following table defines the standard environment variables for Microsoft Windows.

 

환경 변수 값을 검색합니다.

GetEnvironmentVariable을 호출하여 현재 프로세스에 대해 이름으로 전달된 환경 변수의 값을 검색합니다.

참고: 지정된 환경 변수 Name의 대소 문자는 무시됩니다.

다음 표는 Microsoft Window의 표준 환경 변수를 정의합니다. 


Environment variable name

Environment value

ALLUSERSPROFILE

Generic user profile.

일반 사용자 프로필.

APPDATA

Path of the application data folder.

응용 프로그램 데이터 폴더의 경로.

CLIENTNAME

Name of Client machine.

클라이언트 시스템의 이름.

COMMONPROGRAMFILES

Path of common program files folder.

공통 프로그램 파일 폴더의 경로.

COMPUTERNAME

Name of Computer code is running on.

실행 중인 컴퓨터 코드의 이름.

COMSPEC

Path of the cmd.exe program.

cmd.exe 프로그램의 경로.

HOMEDRIVE

Current home drive designation, such as 'C:'

현재 홈 드라이브 지정 ( : 'C :')

HOMEPATH

Path to current location for document storage.

문서 저장을 위한 현재 위치의 경로.

LOGONSERVER

Specifies a domain controller for user logon authentication.

사용자 로그온 인증을 위한 도메인 컨트롤러를 지정.

NUMBER_OF_PROCESSORS

Number of processors on current machine.

현재 컴퓨터의 프로세서 개수

OS

Base name of the Operating System. Note that Windows XP is given as Windows_NT.

운영 체제의 기본 이름. Windows XP Windows_NT로 제공

PATH

The current program path.

현재 프로그램 경로.

PATHEXT

Extension types of executable files.

실행 파일의 확장 유형.

PROCESSOR_ARCHITECTURE

Type of CPU architecture. For example, X86 for Intel Pentium processors.

CPU 아키텍처의 유형. : Intel Pentium 프로세서의 경우 X86.

PROCESSOR_IDENTIFIER

ID number of current machine.

현재 프로그램의 ID 번호.

PROCESSOR_LEVEL

More detailed description of the CPU architecture.

CPU 아키텍처에 대한 자세한 설명.

PROCESSOR_REVISION

Processor revision level.

프로세서 수정 레벨.

PROGRAMFILES

Path of the program files folder.

프로그램 파일 폴더의 경로.

SESSIONNAME

Name of the current OS session.

현재 OS 세션의 이름.

SYSTEMDRIVE

Drive the OS operates from.

OS가 작동하는 드라이브.

SYSTEMROOT

Sets the system directory.

시스템 디렉토리를 설정.

TEMP

Path of the temporary files folder.

임시 파일 폴더의 경로.

TMP

Directory to store temporary files to.

임시 파일을 저장할 디렉토리.

USERDOMAIN

Specifies the domain of the current machine.

현재 컴퓨터의 도메인을 지정.

USERNAME

Name of the current user.

현재 사용자의 이름.

USERPROFILE

Path of the folder holding the current user's information.

현재 사용자의 정보가 들어있는 폴더의 경로.

WINDIR

Path of the Windows folder.

Windows 폴더의 경로.

 

Example

begin

  // 결과: C:\Users\Home-PC\AppData\Local\Temp

  Writeln(GetEnvironmentVariable('TEMP'));

  Readln;

end.

 

retrieve 미국·영국 [rɪ|tri:v]   영국식   중요

1. (특히 제자리가 아닌 곳에 있는 것을) 되찾아오다
2. (
정보를) 검색하다
3. (
좋지 않은 사태를) 수습하다; (잃은 것을) 되찾다

authentication 미국·영국 [ɔ:θèntikéiʃən] 

입증, 증명; 인증

revision 미국·영국 [rɪ|vɪƷn]   영국식   중요

1. 수정 (사항)
2.
검토; 변경
3.
시험공부

revise (revision) 미국·영국 [rɪ|vaɪz]   영국식   중요

1. (의견・계획을) 변경하다
2. (
책・견적서 등의 내용을 바로잡기 위해) 개정하다
3. (
시험을 위해) 복습하다, (시험)공부를 하다

 

출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.GetEnvironmentVariable


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함