如何使用vb.net恢复已删除的文件 [英] how to recover deleted file using vb.net

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

问题描述

如何使用vb.net恢复已删除的文件

how to recover deleted file using vb.net

推荐答案

在旧文件分配表(FAT)系统中,这样的事情曾经是微不足道的;我做到了但是,使用NT文件系统(NTFS)格式,如果文件实际已被删除,则无法进行计划外文件恢复。据我所知,即使从垃圾箱中检索文件也没有托管代码,尽管我怀疑你可以用COM API拼凑一些东西。



如果你需要定位非Windows环境,然后所有赌注都关闭。 Apple,Linux和其他操作系统有自己的文件管理方法;即使你可以写一些在Windows上运行的东西,它也不适用于Windows以外的任何东西。



最好的办法是定期安排备份文件必须保留,并以这种方式实现文件恢复系统。然而,编写这将是一项艰巨的任务,并且永远不会达到商业产品的质量。



我会说你正在咆哮错误的树。
Something like this used to be trivial in the old file allocation table (FAT) system; I've done it. With the NT file system (NTFS) format, however, unplanned file recovery is essentially impossible if the file has actually been deleted. To my knowledge, there is no managed code for even retrieving a file out of the trash, although I suspect you could cobble something together with the COM API.

If you need to target a non-Windows environment, then all bets are off. Apple, Linux and other OSes have their own methods for file management; even if you could write something that worked on Windows, it will not work on anything other than Windows.

Your best bet would be to regularly schedule a backup of files that must be preserved, and implement a file recovery system that way. It would be a massive undertaking to write, though, and will never come up to the quality of a commercial product.

I would say that you are barking up the wrong tree.


http://social.msdn.microsoft.com/Forums/vstudio/en -US / b26533b0-fa4e-490d-a772-12de44ce26af / recover-files-in-vbnet [ ^ ]


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

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