我怎么能直接在硬盘中搜索C ++,Visual Studio中的文件扩展名? [英] How could I search for files-extensions in C++, Visual Studio, ... directly in the HDD?

查看:95
本文介绍了我怎么能直接在硬盘中搜索C ++,Visual Studio中的文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好。 

我想设计一个具有以下功能的软件, 用于教育目的。

1 )从中选择要恢复数据的硬盘。
2 )选择文件类型,我的意思是(.doc,.ppt,.pub,.pdf)......等等。
3 )我想搜索这个文件,比如Winhex,我的意思是,直接硬盘驱动器中。

此项目 目标 获取我的学位,帮助

非常感谢 高级,我将等待 你的回复。





问候。

Michael

解决方案

有些事你似乎不知道。如果你知道它们,你可能没有选择这样的项目。



硬盘驱动器是分区的,因此可能包含多个驱动器。因此,在选择HDD时,可能还需要选择分区。通过驱动器号选择时,必须标识承载驱动器的分区。因此,您的程序必须读取分区表并能够确定分区的低级别起始地址和大小。



分区托管某种文件系统。对于Windows,这通常是NTFS,但也可能是FAT32甚至FAT16。因此,您的程序必须能够读取文件系统目录结构以查找目录和文件。



如果要复制特定文件的数据(恢复数据)表明这一点,你必须能够逐步完成依赖于文件系统的块占用文件列表。



总的来说,这是一个非常雄心勃勃的项目。

不幸的是,这个问题不是以适合数据恢复这个大问题的方式提出的。特别是,一切都高度依赖于使用的文件系统。实际上,从文件名模式的样本中,全部或大部分将是NTFS。



为了了解数据恢复领域的复杂性,看看: http://ntfs.com [ ^ ]。



但是还有更多的文件系统...此外,分区结构可能会损坏,还有更多。



我估计在这个领域获得一个体面的学习成绩的变化,从你的水平开始(我不知道,但答案是答案)和评论很高的尾巴),非常低。对不起,这对我来说很难想象。也许你应该更好地避免在你的问题中提到学位问题,老实说。



很抱歉没有给你任何真正的帮助。由于某些道德和经济原因(尝试实际估计数据恢复软件可能花费多少),这是不可能的。它有可能,我不确定谁应该得到学位,你或那个能帮助你的人。



-SA

Hi there.

I want to design  a software with the following features, this is only for educational purposes.

1) Select the HDD that I want to recover data from.
2) Select the type of files, I mean (.doc, .ppt, .pub, .pdf) ... and so on.
3) I want to search this files like Winhex, I mean, directly in the hard disk drive.

This project is aimed for getting my degree, help is needed.

Thanks a lot in advanced and I will be waiting for your reply.



Regards.
Michael

解决方案

There are some points that you don't seem to know. If you would know them, you might have not selected such a project.

A hard disk drive is partitionated and may therefore contain multiple 'drives'. So when selecting a HDD, it might be also necessary to select the partition. When selecting by drive letter instead, you must identify the partition that hosts the drive. As a result, your program must read the partition table and be able to determine the low level start address and size of partitions.

A partition hosts some kind of file system. With Windows this is usually NTFS but may be also FAT32 or even FAT16. So your program must be able to read the file system directory structures to locate directories and files.

If you want to copy the data of specific files ("recover data" indicates this), you must then be able to step through the file system dependant list of blocks occupied file.

Overall, it is a really ambitious project.


Unfortunately, the problem is not posed in a way adequate to the big problem of data recovery. In particular, everything highly depends on the file system(s) used. In practice, from the samples of the file name patterns, all or most of them will be NTFS.

To get an idea of the complexity of the data recovery field, take a look: http://ntfs.com[^].

But there are a lot more file systems… Besides, the partition structure can be damaged, and a lot more.

I would estimate the change of getting a decent well-earned degree in this field, starting from your level (which I don't really know, but the answer and comments tall the tail), as very low. Sorry, it's just hard for me to imagine. Maybe you should better avoid mentioning the degree issues in your question, honestly.

Sorry for not giving you any "real" help. It would be just impossible by some ethical and "economical" reasons (try to estimate realistically how much data recovery software may cost). It it was possible, I would not be sure who deserves the degree, you or the one who would help you.

—SA


这篇关于我怎么能直接在硬盘中搜索C ++,Visual Studio中的文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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