首页 开发技术 C#     /    重复文件清理工具(含源代码C#)

重复文件清理工具(含源代码C#)

上传者: greenery | 上传时间:2025/3/25 11:05:36 | 文件大小:54KB | 文件类型:rar
重复文件清理工具(含源代码C#)
你的磁盘是不是保存了很多重复的文件?分散在各个目录,不好找吧?找到了,为了保证目录的完整性,你又不能删除它?你知道Linux的文件硬链接吗?就是给文件一个别名,多个文件名指向同一个文件内容,不重复占用空间。
与快捷方式不同的是,删除快捷方式的原始文件,快捷方式就会失效。
你删除硬链接其中任何一个,都不影响原始文件,直到全部文件都删除了(链接数为0)文件才会从磁盘删除。
其实Window的NTFS文件系统也支持文件硬链接的(CreateHardLink),现在就提供一个工具,以相似的文件名为基础,查找重复的文件,我们忽略(1)这样的重复模式文本(正则表达式为:@"(\s)|复件|\((\d)+\)"),把重复的文件改为硬链接。
从而节省磁盘空间。
说明在我的BLOG中http://blog.csdn.net/greenery/archive/2009/10/22/4714144.aspx 本软件ID:1761585

文件下载

资源详情

[{"title":"(24个子文件54KB)重复文件清理工具(含源代码C#)","children":[{"title":"SameFiles.cs <span style='color:#111;'>3.35KB</span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'>5.47KB</span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Debug","children":[{"title":"LinkRepeatFile.exe <span style='color:#111;'>15.50KB</span>","children":null,"spread":false},{"title":"LinkRepeatFile.vshost.exe <span style='color:#111;'>13.99KB</span>","children":null,"spread":false},{"title":"LinkRepeatFile.vshost.exe.manifest <span style='color:#111;'>490B</span>","children":null,"spread":false},{"title":"LinkRepeatFile.pdb <span style='color:#111;'>35.50KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"LinkRepeatFile.exe <span style='color:#111;'>15.50KB</span>","children":null,"spread":false},{"title":"LinkRepeatFile.Properties.Resources.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"LinkRepeatFile.Form1.resources <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"LinkRepeatFile.csproj.FileListAbsolute.txt <span style='color:#111;'>605B</span>","children":null,"spread":false},{"title":"LinkRepeatFile.csproj.GenerateResource.Cache <span style='color:#111;'>847B</span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"LinkRepeatFile.pdb <span style='color:#111;'>35.50KB</span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'>2.47KB</span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'>5.48KB</span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'>1021B</span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'>1.33KB</span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'>417B</span>","children":null,"spread":false},{"title":"SubFile.cs <span style='color:#111;'>460B</span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'>8.73KB</span>","children":null,"spread":false},{"title":"LinkRepeatFile.csproj <span style='color:#111;'>3.73KB</span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'>5.68KB</span>","children":null,"spread":false},{"title":"LinkRepeatFile.suo <span style='color:#111;'>29.00KB</span>","children":null,"spread":false},{"title":"LinkRepeatFile.sln <span style='color:#111;'>917B</span>","children":null,"spread":false}],"spread":true}]

评论信息

  • sadaket:
    希望这次找到好用的代码2018-04-16
  • frankxnn:
    运行有很多错误,可以参考下2016-05-07
  • 红烧西瓜:
    还不错,不过后来我用另一个软件搞定了。2015-09-23
  • dickwu192:
    结构比较完整,改改就能使用了2015-01-12
  • 尼玛Rabbit:
    不错的东西,再次基础上烧灼修改,功能可以很充分!2014-03-10

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明