|
폴더의 존재유무는 DirectoryExists함수를 쓰세요.
한재혁 님이 쓰신 글 :
: 폴더가 로컬디스크C에 있는지 없는지 이런소스를 썻는데요
: if (Key == 0xd)
: {
: AnsiString Path="c:\\" + Edit1->Text + ".txt";
: if (FileExists(Path))
: {
: ShowMessage("Go to the next step");
: Form2->Show();
: Form1->Hide();
: }
: else
: {
: ShowMessage("There is no folder in C");
: }
: }
: 안돼더라고요
: 어디가 잘못된것인지 알려주세요
|