登录
首页 » 其他 » VC++ 删除目录、文件夹

VC++ 删除目录、文件夹

于 2022-01-22 发布 文件大小:26.78 kB
0 357
下载积分: 2 下载次数: 1

代码说明:

VC++ 删除目录或文件夹的例子。删除指定的文件夹目录的源码,请在文本框中输入需要删除的目录名称、路径即可,路径不要错哦,本示例主要是演示如何删除文件,在易用性方面没过多完善。   //是文件时直接删除   if (!file.IsDots() && !file.IsDirectory())    DeleteFile(file.GetFilePath());   else if (file.IsDots())    continue;   else if (file.IsDirectory())   {    path = file.GetFilePath();    //是目录时,继续递归调用函数删除该目录下的文件    DelFolder(path);    //目录为空后删除目录    RemoveDirectory(path);   }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • c class code
    c语言学习的经典代码,c语言实例解析精粹书的配套代码。目录清单如下:第一部分  基础篇 001  第一个C程序 002  运行多个源文件 003  求整数之积 004  比较实数大小 005  字符的输出 006  显示变量所占字节数 007  自增/自减运算 008  数列求和 009  乘法口诀表 010  猜数字游戏 011  模拟ATM(自动柜员机)界面 012  用一维数组统计学生成绩 013  用二维数组实现矩阵转置 014  求解二维数组的最大/最小元素 015  利用数组求前n个质数 016  编制万年历 017  对数组元素排序 018  任意进制数的转换 019  判断回文数 020  求数组前n元素之和 021  求解钢材切割的最佳订单 022  通过指针比较整数大小 023  指向数组的指针 024  寻找指定元素的指针 025  寻找相同元素的指针 026  阿拉伯数字转换为罗马数字 027  字符替换 028  从键盘读入实数 029  字符行排版 030  字符排列 031  判断字符串是否回文&
    2022-03-10 23:24:00下载
    积分:1
  • 用于数据采集分析的对话框界面,经过编译通过
    用于数据采集分析的对话框界面,经过编译通过-For data acquisition and analysis of the dialog box interface, compiled through
    2022-01-25 20:09:49下载
    积分:1
  • Its content is on professional communication error correction and encoding the c...
    其内容是关于通信专业的纠错与编码的内容,对各种码型及编解码等相关内容作了一定的介绍-Its content is on professional communication error correction and encoding the contents of various codes, such as codec type and content of certain relevant introduction
    2022-03-06 19:34:09下载
    积分:1
  • 这个程序主要用asp来实现了两个文件同时上传这个功能!经检查已没有错误,还请各位专家指点! 谢谢!...
    这个程序主要用asp来实现了两个文件同时上传这个功能!经检查已没有错误,还请各位专家指点! 谢谢!-the main asp procedures to achieve the two papers upload function! The inspection has been no error, also asked the experts to guide! Thank you!
    2022-12-21 18:20:03下载
    积分:1
  • 制作网页的时候,有很多的技巧,如屏蔽鼠标右键 、防止复制、不准粘贴、 防止被人frame 等...
    制作网页的时候,有很多的技巧,如屏蔽鼠标右键 、防止复制、不准粘贴、 防止被人frame 等-production of the website, a lot of skills, such as shielding the right mouse button to prevent copying, no paste, to prevent any such frame
    2022-02-21 06:42:34下载
    积分:1
  • 一个原始套接字的实例
    一个原始套接字的实例-an example of the original socket
    2022-08-11 03:05:18下载
    积分:1
  • 这个脚本的目的是作为一个单独的脚本,可以很容易地集成…
    This script was designed as a stand alone script which can be easily intergrate into any existing website as it is,but if you want to intergrate it into a site which uses a content management format, then some alterations will have to be done for it to work properly. Remember this is a project and I am constantly working to improve it, so I can t guarantee that it will work for everyones needs, but dammmmd close. -This script was designed as a stand alone script which can be easily intergrate into any existing website as it is, but if you want to intergrate it into a site which uses a content management format, then some alterations will have to be done forit to work properly. Remember this is a project and I am constantly working to improve it, so I can t guarantee thatit will work for everyones needs, but dammmmd close.
    2023-06-13 06:40:03下载
    积分:1
  • ajax组件,使.net开发更加舒坦,增加了用户体验友好度
    ajax组件,使.net开发更加舒坦,增加了用户体验友好度-ajax components, so that. net development of more加舒坦, an increase of the user experience friendly
    2022-05-13 11:09:21下载
    积分:1
  • VC++资源管理器-无限级树型菜单
    一个比较早的代码了,VC++资源管理器-无限级树形菜单,本程序所用压缩函数库在子目录zipfunc中,在zipfunc目录下,有两个子目录分别包含Release版和Debug版的zipfunc.lib,两者都是共享链接库编译生成.同样,主程序的链接也必须用共享链接库设置.如要生成静态链接库程序,则必须重新编译zipfunc.lib,使之也生成静态链接库文件.   主工程中的CZip类和CUnZip类,是直接使用压缩库函数构造的.编译后不需要额外的文件支持.   具体可见工程设置中的Link选项和C++ ->Preprocessor -> Additional include directories选项以及CZip类和CUnZip类的头文件.   ZipFunc.lib是WinZip的原版.独立使用CZip类压缩出来的文件完全可以用WinZip来解压缩,一点问题也没有.   新版程序支持文件关联,具体代码见CNoteApp类的初始化函数和CNoteDlg类的初始化函数.为了方便期间,本程序没有使用注册表编程.文件关联的实现可以对生成的数据文件使用打开方式关联,一次就OK了.
    2022-11-18 07:35:04下载
    积分:1
  • 简单的客户服务器模型的通信工具
    简单的客户服务器模型的通信工具-simple client-server model of communication tools
    2023-04-09 09:40:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载