c++ windows下创建文件夹和删除文件夹

int main()
{
    int stopaa;
    char path[256];

    bool bCreate=CreateDirectory(L"abc",NULL);
    printf("%d \n",bCreate);

    //RemoveDirectory(L"dirtest");
    scanf("%d",&stopaa);
    return 0;
}

其中 CreateDriectory 如果文件夹已经存在 就不会重新创建了,RemoveDirectory如果文件夹下面有文件也不会删除文件夹

posted on 2012-12-22 20:26  c_dragon  阅读(4833)  评论(0编辑  收藏  举报

导航