在Windows上恢复已删除的文件 [英] Recovering deleted file on windows

查看:144
本文介绍了在Windows上恢复已删除的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个程序来恢复Windows 7上最近删除的文件。

I want to write a program to recover recently deleted files on windows 7..

Windows API中是否有一个恢复文件的功能?如果没有,我该如何开始?

Is there a function in windows API that recover files? If not, how can I begin in that?

编辑:

还是为此目的开发的开源项目?


Or an open source project for that?

编辑:

我的意思不是回收站!


I do not mean Recycle Bin!!

推荐答案

所有文件恢复工具都首先从磁盘上扫描文件头或文件树的旧痕迹。

Well the file recovery tools all start by scanning the disk for file headers or for old traces of the file tree.

希望从头开始执行此操作,您需要了解您的目标驱动器及其文件系统。可以这么说,虽然有听起来像您在Windows中进行开发的项目,但是有一些项目可以直接从linux访问NTFS文件系统。它们在我的帖子的Wiki链接的末尾列出。我有一些链接可以直接访问驱动器。从那里您可以尝试通过任何方式从NTFS日志,日志或FS的其他组件派生出旧文件。

Looking to do this from scratch you need to understand your target drive and its file system. There is no API so to say, though there are projects that deal with accessing the NTFS file system directly from linux, though it sounds like you are developing in Windows. They are listed at the end of the Wiki link in my post. I have some links that will access the drive directly. From there you can t,ry to detect old files though any means you could derive from the NTFS Journal, Log or other component of the FS.

假设您要使用Windows 7并将在操作系统中运行您的程序,请查看以下链接:

Assuming you want to use Windows 7 and will be running your program in the OS take a look these links:


  1. 直接驱动器访问

  2. 创建文件

  3. NTFS上的维基百科(Windows 7使用的文件系统)检查外部链接

  1. Direct Drive Access
  2. Create File
  3. Wikipedia Article on NTFS (The file system Windows 7 uses) Check the external links

您要写的内容并非微不足道,尽管这很有趣。

What your looking to write is no trivial task, though that's what makes it interesting.

这篇关于在Windows上恢复已删除的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆