C#

C# 폴더 확인, 생성, 열기

outshine90 2014. 11. 12. 16:55

C# 폴더 확인, 생성, 열기

  
//내 폴더 위치 불러오기
System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)

//폴더 있는지 확인하고 생성하기
if(!Directory.Exists("path"))
{
     System.IO.Directory.CreateDirectory("path");
}

//폴더 열기
 System.Diagnostics.Process.Start("FolderPath")