실행프로그램의 현재 경로를 얻을수 있는 예제코드들입니다.
1. Application.StartupPath
2. System.IO.Directory.GetCurrentDirectory()
3. System.Environment.CurrentDirectory
위 코드들의 반환값은 모두 문자열입니다.
'C#' 카테고리의 다른 글
[C#]FileSystemWatcher 예제 (0) | 2016.04.04 |
---|---|
MSSQL Paging Query (0) | 2016.03.30 |
Oracle paging Query (0) | 2016.03.29 |
[C#]BadImageFormatException 관련 (0) | 2016.03.29 |
[C#]ref 예제 (0) | 2016.03.28 |