'SpecialFolder'에 해당되는 글 1건

  1. 2007/09/01 C# 시스템경로(?)

C# 시스템경로(?)

개발/Visual Studio 2007/09/01 22:24 posted by zekill
리스트박스한개 만들어놓고 로딩되는 부분에 아래처럼 추가해주면 확인가능함....
음...지금도 되낭.......ㅡㅡ;;;

SpecialFolders는 특수폴드 열거자입니다.



            listBox1.Items.Add("ApplicationData="+Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));

            listBox1.Items.Add("CommonApplicationData="+Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData));

            listBox1.Items.Add("CommonProgramFiles="+Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles));

            listBox1.Items.Add("Cookies="+Environment.GetFolderPath(Environment.SpecialFolder.Cookies));

            listBox1.Items.Add("Desktop="+Environment.GetFolderPath(Environment.SpecialFolder.Desktop));

            listBox1.Items.Add("DesktopDirectory="+Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory));

            listBox1.Items.Add("Favorites="+Environment.GetFolderPath(Environment.SpecialFolder.Favorites));

            listBox1.Items.Add("History="+Environment.GetFolderPath(Environment.SpecialFolder.History));

            listBox1.Items.Add("InternetCache="+Environment.GetFolderPath(Environment.SpecialFolder.InternetCache));

            listBox1.Items.Add("LocalApplicationData="+Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData));

            listBox1.Items.Add("MyComputer="+Environment.GetFolderPath(Environment.SpecialFolder.MyComputer));

            listBox1.Items.Add("MyMusic="+Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));

            listBox1.Items.Add("MyPictures="+Environment.GetFolderPath(Environment.SpecialFolder.MyPictures));

            listBox1.Items.Add("Personal="+Environment.GetFolderPath(Environment.SpecialFolder.Personal));

            listBox1.Items.Add("ProgramFiles="+Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles));

            listBox1.Items.Add("Recent="+Environment.GetFolderPath(Environment.SpecialFolder.Recent));

            listBox1.Items.Add("SendTo="+Environment.GetFolderPath(Environment.SpecialFolder.SendTo));

            listBox1.Items.Add("StartMenu="+Environment.GetFolderPath(Environment.SpecialFolder.StartMenu));

            listBox1.Items.Add("Startup="+Environment.GetFolderPath(Environment.SpecialFolder.Startup));

            listBox1.Items.Add("System="+Environment.GetFolderPath(Environment.SpecialFolder.System));

            listBox1.Items.Add("Templates="+Environment.GetFolderPath(Environment.SpecialFolder.Templates));
2007/09/01 22:24 2007/09/01 22:24