永久删除硬盘中的数据 [英] Permanently deletes data from hard drive

查看:59
本文介绍了永久删除硬盘中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

告诉我该程序如何执行.Net?

Tell me how to do this procedure means .Net?

推荐答案

如果要删除文件,则可以简单地使用 File.Delete .

If you mean deleting a file, then you can simply use File.Delete.

从某种意义上说,该文件将不会在回收站中,因此将被永久删除.就Windows而言,以及普通用户可以看到的,它都将消失.

The file will be permanently deleted, in the sense that it won't be in the recycle bin. It will be gone as far as Windows is concerned and as far as normal users can see.

但是,它不一定要从硬盘驱动器中清除-硬盘驱动器上的扇区仅被标记为可重用".存在可以潜在地恢复数据的工具.

However, it is not necessarily scrubbed from the hard-drive - the sectors on the hard-drive are merely marked as 'reusable'. Tools exist that could potentially recover the data.

如果您确实希望数据消失(或至少很难恢复),则可以使用File类的其他方法覆盖文件中的数据,以打开文件进行写入,然后使用垃圾(几次 如果您真的是真的偏执狂).

If you really want the data gone (or at least much much harder to recover) you could overwrite the data in the file using other methods of the File class to open the file for writing and then overwrite the contents of the file with garbage (several times if you are really really paranoid).


这篇关于永久删除硬盘中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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