FileAttributes attr = File.GetAttributes(@"C:\Windows");
if ((attr & FileAttributes.Directory) == FileAttributes.Directory)
MessageBox.Show("It's a Directory");
else
MessageBox.Show("It's a File");
관련 문서가 검색되었습니다.
- [2016/09/24] XML 으로 환경설정 저장하기 ( \n,엔터값 포함, NewLine) ()
- [2013/02/01] Windows 에 FTP 서버 구축(FileZilla Server) (7982) *1
- [2013/01/10] 폴더명, 파일명 얻기 (20103)
- [2010/10/29] 전체 경로명에서 folder 명만 얻기 (14902)
- [2010/09/27] 경로명으로 파일 리스트 가져오기 (20981)
- [2010/06/29] ini 다루기 - 하나의 섹션 이용하기 (18135)
- [2010/06/28] Binary 파일 읽고 쓰기 (26165)
- [2010/06/28] TEXT 파일 읽고 쓰기 (33872) *2
- [2008/07/21] 리눅스 파일 검색: find 사용 (17974)