티스토리 뷰
Series
Detect Windows Architecture [C#] Environment.GetEnvironmentVariable
More Code 2018. 6. 25. 04:13// C#
using System;
namespace Sharp1
{
class Program
{
static void Main(string[] args)
{
string myArchitecture =
Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE", EnvironmentVariableTarget.Machine);
if (myArchitecture != null)
Console.WriteLine("PROCESSOR_ARCHITECTURE : " + myArchitecture);
string myArchiteW6432 =
Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432", EnvironmentVariableTarget.Machine);
if (myArchiteW6432 != null)
Console.WriteLine("PROCESSOR_ARCHITEW6432 : " + myArchiteW6432);
}
}
}
'Series' 카테고리의 다른 글
Detect Windows Architecture [C++] GetEnvironmentVariable (0) | 2018.06.25 |
---|---|
Detect Windows Architecture [C++] std::getenv (0) | 2018.06.25 |
Detect Windows Architecture [C#] Directory.Exists (Not Good Solution) (0) | 2018.06.25 |
Argument Parameter [Python] Keyword Arguments (0) | 2018.06.24 |
Argument Parameter [C#] Named Arguments (0) | 2018.06.24 |