Windows本身也是循环删除得!!!

解决方案 »

  1.   

    keaizhong(可爱钟) ,guihengzhang(贵恒) ,谢谢!!可太多文件了,几十个文件夹,一个文件夹里有几千个文件。??
      

  2.   

    用循环删除吧
    while(还有文件)
    {
    unlink(file);
    }程序自己写吧。
      

  3.   

    应该用递归,因为文件夹里面有可能还有文件。
    function del(文件夹){
    while(还有文件)
    {
    if(文件夹){function del(文件夹);}unlink(file);
    }
    }
      

  4.   

    应该用递归,因为文件夹里面有可能还有文件。
    function del(文件夹){
    while(还有文件)
    {
    if(文件夹){del(文件夹);}unlink(file);
    }
    }