.NET프로그래밍/C# 3.5 SP1
34. 환경변수
holland14
2009. 8. 7. 14:31
using System;
public class 환경변수
{
public static void Main()
{
Console.WriteLine( Environment.SystemDirectory ); // 시스템폴더
Console.WriteLine( Environment.Version ); // 닷넷기준버전:2.0.50727
Console.WriteLine( Environment.OSVersion); // 운영체제 버전
Console.WriteLine( Environment.MachineName); // 컴퓨터명
Console.WriteLine( Environment.UserName); // 사용자명
Console.WriteLine( Environment.CurrentDirectory ); // 현재 폴더
Console.WriteLine( Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) ); // 내문서 폴더
}
}