BCB 如何判断一个文件夹是否存在

KevinHo 2009-09-17 01:13:57
如题。请各位高手指点一下,能有代码或函数的使用方法就更好了,谢谢了!
...全文
739 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
TripH0101 2009-09-17
  • 打赏
  • 举报
回复
#include <Filectrl.hpp>
void __fastcall TForm1::Button1Click(TObject *Sender)

{
if (!DirectoryExists("c:\\temp"))
{
if (!CreateDir("C:\\temp"))
throw Exception("Cannot create c:\\temp directory.");
}
}
xjq2003 2009-09-17
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 fxworld 的回复:]
#include <SysUtils.hpp>

DirectoryExists()函数
[/Quote]
正解
fxworld 2009-09-17
  • 打赏
  • 举报
回复
#include <SysUtils.hpp>

DirectoryExists()函数
fxworld 2009-09-17
  • 打赏
  • 举报
回复
DirectoryExists()函数

13,824

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧