본문 바로가기

Programing (프로그래밍)/WPF & C# (C Sharp)

WPF & C# - Environment 정보 값 읽어오기 ( 각종 폴더 및 OS 정보 / SpecialFolder / 스폐셜폴더 )

728x90
반응형


 WPF & C# - Environment 정보 값 읽어오기 ( 각종 폴더 및 OS 정보 / SpecialFolder / 스폐셜폴더 )


Environment.zip






Environment 정보 값



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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
add("Environment.CommandLine", Environment.CommandLine, "이 프로세스에 대한 명령줄");
add("Environment.CurrentManagedThreadId", Environment.CurrentManagedThreadId.ToString(), "현재 스레드의 고유 식별자");
add("Environment.ExitCode", Environment.ExitCode.ToString(), "프로세스의 종료 코드");
foreach (string str in Environment.GetLogicalDrives()) add("Environment.GetLogicalDrives()", str, "모든 드라이브를 배열로 반환");
add("Environment.Is64BitOperatingSystem", Environment.Is64BitOperatingSystem.ToString(), "운영체제(OS) 가 64비트(64bit) 여부 확인");
add("Environment.Is64BitProcess", Environment.Is64BitProcess.ToString(), "프로세스(OS) 가 64비트(64bit) 여부 확인");
add("Environment.NewLine", Environment.NewLine, "줄바꿈 문자열 반환");
add("Environment.ProcessorCount", Environment.ProcessorCount.ToString(), "Processor 수");
add("Environment.StackTrace", Environment.StackTrace, "스택 추적 정보");
add("Environment.SystemPageSize", Environment.SystemPageSize.ToString(), "시스템 페이지 사이즈(단위:byte)");
add("Environment.TickCount", Environment.TickCount.ToString(), "시스템 시작 이후 경과 시간");
add("Environment.MachineName", Environment.MachineName, "로컬 NetBIOS 이름");
add("Environment.OSVersion", Environment.OSVersion.ToString(), "플랫폼 식별자 와 OS 버전");
add("Environment.UserDomainName", Environment.UserDomainName, "네트워크 도메인 이름");
add("Environment.UserName", Environment.UserName, "운영체제 로그인한 사용자 이름");
add("Environment.UserInteractive", Environment.UserInteractive.ToString(), "현재 프로세스가 사용자 대화형 모드로 실행되는지 여부");
add("Environment.Version", Environment.Version.ToString(), "런타임의 주번호, 보조번호, 빌드번호 및 수정번호");
add("Environment.WorkingSet", Environment.WorkingSet.ToString(), "프로세스 컨텍스트에 매핑되는 실제메모리 크기");
 
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)", Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), @"C:\ProgramData");
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu)", Environment.GetFolderPath(Environment.SpecialFolder.CommonStartMenu));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms)", Environment.GetFolderPath(Environment.SpecialFolder.CommonPrograms));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup)", Environment.GetFolderPath(Environment.SpecialFolder.CommonStartup));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonTemplates)", Environment.GetFolderPath(Environment.SpecialFolder.CommonTemplates));
 
// @"C:\Users\"
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonVideos)", Environment.GetFolderPath(Environment.SpecialFolder.CommonVideos),@"C:\Users\");
add("Environment.GetFolderPath(Environment.SpecialFolder.AdminTools)", Environment.GetFolderPath(Environment.SpecialFolder.AdminTools));
add("Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)", Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
add("Environment.GetFolderPath(Environment.SpecialFolder.CDBurning)", Environment.GetFolderPath(Environment.SpecialFolder.CDBurning));
add("Environment.CurrentDirectory", Environment.CurrentDirectory, "현재 작업디렉토리의 정규화된 경로");
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory)", Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments)", Environment.GetFolderPath(Environment.SpecialFolder.CommonDocuments));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonMusic)", Environment.GetFolderPath(Environment.SpecialFolder.CommonMusic));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonOemLinks)", Environment.GetFolderPath(Environment.SpecialFolder.CommonOemLinks));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonPictures)", Environment.GetFolderPath(Environment.SpecialFolder.CommonPictures));
add("Environment.GetFolderPath(Environment.SpecialFolder.Cookies)", Environment.GetFolderPath(Environment.SpecialFolder.Cookies));
add("Environment.GetFolderPath(Environment.SpecialFolder.Desktop)", Environment.GetFolderPath(Environment.SpecialFolder.Desktop));
add("Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)", Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory));
add("Environment.GetFolderPath(Environment.SpecialFolder.Favorites)", Environment.GetFolderPath(Environment.SpecialFolder.Favorites));
// @"C:\Users\admin\AppData\Local")
add("Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)", Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), @"C:\Users\admin\AppData\Local");
add("Environment.GetFolderPath(Environment.SpecialFolder.History)", Environment.GetFolderPath(Environment.SpecialFolder.History));
add("Environment.GetFolderPath(Environment.SpecialFolder.InternetCache)", Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));
add("Environment.GetFolderPath(Environment.SpecialFolder.MyComputer)", Environment.GetFolderPath(Environment.SpecialFolder.MyComputer));
add("Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)", Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
add("Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)", Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));
add("Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)", Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));
add("Environment.GetFolderPath(Environment.SpecialFolder.MyVideos)", Environment.GetFolderPath(Environment.SpecialFolder.MyVideos));
add("Environment.GetFolderPath(Environment.SpecialFolder.NetworkShortcuts)", Environment.GetFolderPath(Environment.SpecialFolder.NetworkShortcuts));
add("Environment.GetFolderPath(Environment.SpecialFolder.Personal)", Environment.GetFolderPath(Environment.SpecialFolder.Personal));
add("Environment.GetFolderPath(Environment.SpecialFolder.PrinterShortcuts)", Environment.GetFolderPath(Environment.SpecialFolder.PrinterShortcuts));
add("Environment.GetFolderPath(Environment.SpecialFolder.Programs)", Environment.GetFolderPath(Environment.SpecialFolder.Programs));
add("Environment.GetFolderPath(Environment.SpecialFolder.Recent)", Environment.GetFolderPath(Environment.SpecialFolder.Recent));
add("Environment.GetFolderPath(Environment.SpecialFolder.Resources)", Environment.GetFolderPath(Environment.SpecialFolder.Resources));
add("Environment.GetFolderPath(Environment.SpecialFolder.SendTo)", Environment.GetFolderPath(Environment.SpecialFolder.SendTo));
add("Environment.GetFolderPath(Environment.SpecialFolder.StartMenu)", Environment.GetFolderPath(Environment.SpecialFolder.StartMenu));
add("Environment.GetFolderPath(Environment.SpecialFolder.Startup)", Environment.GetFolderPath(Environment.SpecialFolder.Startup));
add("Environment.GetFolderPath(Environment.SpecialFolder.Templates)", Environment.GetFolderPath(Environment.SpecialFolder.Templates));
add("Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)", Environment.GetFolderPath(Environment.SpecialFolder.UserProfile));
// @"C:\Windows"
add("Environment.GetFolderPath(Environment.SpecialFolder.Windows)", Environment.GetFolderPath(Environment.SpecialFolder.Windows), @"C:\Windows");
add("Environment.GetFolderPath(Environment.SpecialFolder.System)", Environment.GetFolderPath(Environment.SpecialFolder.System));
add("Environment.GetFolderPath(Environment.SpecialFolder.SystemX86)", Environment.GetFolderPath(Environment.SpecialFolder.SystemX86));
add("Environment.SystemDirectory", Environment.SystemDirectory, "시스템 디렉토리 경로");
add("Environment.GetFolderPath(Environment.SpecialFolder.Fonts)", Environment.GetFolderPath(Environment.SpecialFolder.Fonts));
add("Environment.GetFolderPath(Environment.SpecialFolder.LocalizedResources)", Environment.GetFolderPath(Environment.SpecialFolder.LocalizedResources));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles)", Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFilesX86)", Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFilesX86));
// @"C:\Program Files
add("Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)", Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), @"C:\Program Files (x86)");
add("Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86)", Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86));
add("Environment.GetFolderPath(Environment.SpecialFolder.CommonAdminTools)", Environment.GetFolderPath(Environment.SpecialFolder.CommonAdminTools));
cs



Environment.SpecialFolder Enum   스폐셜폴더 정보





728x90
반응형