일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- SDK
- Delphi
- 시리얼 통신
- winsock
- 데이터베이스
- 문자열
- WIN32 SDK
- 예제
- 파라미터
- MFC
- 설치
- MySQL
- 초보
- Firebird
- Visual Basic
- 기초
- 소니
- xml
- 입문
- vb
- Visual Studio 2005
- dll
- VB.NET
- 델파이
- PostgreSQL
- 셋업
- 인스톨
- SQL
- c#
- 파이어버드
- Today
- Total
목록폴더 (2)
프로그래밍 노트
using System;using System.IO; namespace DirectoryTest{ class Program { static void Main(string[] args) { if (args.Length < 1) { Console.WriteLine("디렉토리명 입력 안함"); return; } // 지정 디렉토리의 유무 확인 if (!Directory.Exists(args[0])) { Console.WriteLine("찾는 디렉토리 없음"); return; } DirectoryInfo dir = new DirectoryInfo(args[0]); FileInfo[] files = dir.GetFiles(); // foreach 배열의 갯수를 모를 때, 모든 배열만큼 돈다. foreach (Fi..
// 지정한 폴더의 파일 리스트 가져오기 : 서브 폴더 검색 대응 function FindFiles(const sPath, sMask: string; slFiles: TStringList; bSubDir: boolean): integer; var iFindResult: integer; srSchRec : TSearchRec; begin result := 0; iFindResult := FindFirst(sPath + sMask, faAnyFile - faDirectory, srSchRec); while iFindResult = 0 do begin slFiles.Add(sPath + srSchRec.Name); iFindResult := FindNext(srSchRec); end; FindClose(srS..