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

VC++ 删除目录、文件夹

于 2022-01-22 发布 文件大小:26.78 kB
0 377
下载积分: 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++实例~ 初学基础-examples based learning!
    2023-03-27 08:40:03下载
    积分:1
  • 滚球游戏意智游戏 问题描述 有八个小洞,序号和分布位置如图。小球从A、B、C(即洞号0、1、2)三个位置之一滚下。如果洞的状态为0时,球向左滚;如果洞的...
    滚球游戏意智游戏 问题描述 有八个小洞,序号和分布位置如图。小球从A、B、C(即洞号0、1、2)三个位置之一滚下。如果洞的状态为0时,球向左滚;如果洞的状态为1时,球向右滚。凡是球滚过的洞,状态取反(既由1变0,由0变1)。 现用8位二进制数依次从左到右表示八个小洞的状态。 例: 图中的初始状态为 00000101 时,最多滚入3个球时有 从C洞滚入一小球状态为 ――――> 00101111 从B洞滚入一小球状态为 ――――> 01111011 从A洞滚入一小球状态为 ――――> -bowls game Italy-game description eight holes and serial number and distribution figure. Small ball from the A, B, C (hole No. 0,1,2), one of the fallen three locations. If the state of the hole 0:00 a.m., the ball rolling left; If the state of the hole 1:00, the ball rolling right. Whatever strain at the hole, from the anti-state (both from a variable 0, 0 Variable 1). Now with eight followed by the binary number eight hole, said whatever the state. Cases : Figure the initial states of 00000101, three roll-up ball from C hole rolled over a small ball of----> 00101111 B hole rolled over from one state to the small ball----> 01111011 from A hole rolled over a small ball of---->
    2023-04-01 05:00:04下载
    积分:1
  • 软件应用程序包括程序原代码和程序控制语句的工具。 应用编程接口(...):使用反映诸如指纹、眼球血管图像或声音图像的个体特征对... text):明文通过加密算...
    软件应用程序包括程序原代码和程序控制语句的工具。 应用编程接口(...):使用反映诸如指纹、眼球血管图像或声音图像的个体特征对... text):明文通过加密算法转换的结果。数据的明文消息的加密形式-software applications, including procedures for the original code and program control statements tools. Application Programming Interface (...): reflect such as the use of fingerprints, eye vascular image or sound image characteristics of the individual ... text) : specifically through encryption algorithm change the outcome. Data encryption expressly information form
    2022-02-14 13:19:38下载
    积分:1
  • 一个十岁小孩子写的小程序 一个十岁小孩子写的小程序
    一个十岁小孩子写的小程序 一个十岁小孩子写的小程序-a 10-year-old children write a small program written by the 10-year-old child a small program written by the 10-year-old children small programs
    2022-11-26 23:20:03下载
    积分:1
  • Flash RPG游戏引擎
    应用背景一个用于flash游戏开发的引擎,封装了地图和基本的遮挡等算法。添加了高效的路径搜索算法,整个引擎有着完整的程序架构,预留了大量接口,可以非常容易地进行扩展和提升,所有资源均通过动态加载,封装了资源加载和管理,封装了Socket有效地避免黏包关键技术flash没有相关的游戏引擎,开发起来很费劲,没有完整的架构,在开发大型项目上阻力大,flash自身存在诸多bug,对新手而言不利于学习,flash资源管理不方便很容易造成内存泄漏,目前对flash面向对象开发的程序并不多。使用该引擎能快速有效简单清晰地开发游戏
    2023-02-22 15:50:04下载
    积分:1
  • 802.11a
    802.11a标准 比较全面 各个方面的都有的-802.11a
    2022-02-15 08:19:19下载
    积分:1
  • 网页恶意代码大总结(共15项) 以下代码仅供学习研究使用,请勿使用害人,造成损失本人概不负责,谢谢合作!...
    网页恶意代码大总结(共15项) 以下代码仅供学习研究使用,请勿使用害人,造成损失本人概不负责,谢谢合作! -website grand summary of malicious code (a total of 15), the following code only to study the use, please do not use harmful, I caused the loss is not responsible for, Thank you for your cooperation!
    2022-11-24 22:30:03下载
    积分:1
  • Download the official site of the 2.5 version of myJXTA, configured form again a...
    在官方网站上下载了2.5版本的myJXTA,配置好窗体后跑了一遍,感觉这个示例程序的功能还是蛮强大的,但是这个程序的API写得比较简单,所以决定自己仔细研究研究~-Download the official site of the 2.5 version of myJXTA, configured form again after the run, I feel the function of the sample or very strong, but this process is relatively simple API written, so carefully studied to determine their own study ~
    2023-06-10 18:15:03下载
    积分:1
  • A classic Snake game, by using C language, and more inadequate.
    一款经典小游戏贪吃蛇,用C语言编写而成,多有不足。-A classic Snake game, by using C language, and more inadequate.
    2022-07-15 09:05:45下载
    积分:1
  • sch图,可以分析.交流输入直流二倍压输出,用作试验高压电源
    sch图,可以分析.交流输入直流二倍压输出,用作试验高压电源-sch map can be analyzed. AC to DC twice the output pressure, high voltage power supply to be used in the trial
    2022-03-06 14:04:16下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载