CFile好像只提供了文件的操作。
那么如果我要对一个文件夹进行操作怎么处理呢。
请大家给点提示

解决方案 »

  1.   


    void RecurrentClean(CString Path,HWND g_hDlg)
    {
            CString Buffer;
    CFileFind finder;
       
     
           if( !SetCurrentDirectory(Path))
           {
               return ;
           }       BOOL bWorking = finder.FindFile("*.*"); 
      while (bWorking)
      {
    bWorking = finder.FindNextFile();
    if (finder.IsDirectory() )
    {
    if (!finder.IsDots() )
    {
                                   //这是一个非..的文件夹
                                        //递归.....
                                   RecurrentClean(finder.GetFilePath(),g_hDlg);   
    }
    }
    else
    {
                           //这是一个文件

      }

    }
      

  2.   

    原来和unix一样,文件夹是一个特殊的文件点,
    谢啦