Board logo

标题: 求擦除文档数据的批处理 [打印本页]

作者: qwertl     时间: 2008-9-16 22:55    标题: 求擦除文档数据的批处理

一般的del    rd  操作太容易恢复了,有没对自己的数据用批处理的擦除用一般的反删除软件无法恢复.
作者: HAT     时间: 2008-9-16 23:11
思路:
:begin
判断磁盘剩余空间
for /l %%a in (1,1,10) do (
  生成垃圾文件填充剩余空间
  删除上一步生成的垃圾文件
)
作者: qwertl     时间: 2008-9-16 23:30
对多数据要清除时是可以用,但这方法对容量大的硬盘或U盘而只需临时性擦除一两个文件的操作效率不高。

可否实现到先获取要擦除文件的大小,然后用相同大小的随机数据覆盖掉要擦除的文件,然后再删除它?还有没更好的方法呢
作者: HAT     时间: 2008-9-16 23:42
//可否实现到先获取要擦除文件的大小,然后用相同大小的随机数据覆盖掉要擦除的文件,然后再删除它?

不行,批处理不知道硬盘把数据存放在什么地方,你看看硬盘的工作原理就明白了。
作者: qwertl     时间: 2008-9-16 23:48
谢谢HAT.

找了个小程序比较易实现变功能,也是个论坛上的下载不了,再找找

http://bbs.et8.net/bbs/showthread.php?t=766177

===============================================================================
  File Wiper Version 2.1.0.702 by BaiYang / 2003 - 2006, Freeware
===============================================================================
Use N pass random data + 1 pass full zero + 1 pass full one to overwirte and
delete specified files

USAGE: filewipe {FilePattern} [RandomPassNumber] [<Other Options>]

===============================================================================
Options:
  FilePattern        - file and dir search pattern
  RandomPassNumber   - how many times to overwrite the specified files with
                     - random data, Default is 6
  -s                 - include subdirectory (!!DANGER!!)
  -logfile:          - using a logfile.
  -loglevel          - specify the lowest logging level, can be:
                         DebugOnly (Most Detail)
                         Info (DEFAULT)
                         Warning
                         Error
                         FatalError
                         Disabled (Close Logging Output)
  -priority:         - specify the process running priority, can be:
                         Idle
                         BelowNormal
                         Normal (DEFAULT)
                         AboveNormal

===============================================================================
Examples:
  filewipe *.doc
  filewipe MyDoc.txt 2
  filewipe * 15 /logfile:"C:\wipe.log"
  filewipe * /s /priority:BelowNormal


 

简单中文帮助

代码:

C:\Documents and Settings\Administrator>
#filewipe

===============================================================================
  文件擦除工具, 版本:2.1.0.702 by BaiYang / 2003 - 2006, 免费软件
===============================================================================
使用 N 次随机数据+一次全零+一次全壹覆盖并删除指定文件

用法: filewipe {FilePattern} [RandomPassNumber] [<Other Options>]

===============================================================================
选项:
  FilePattern        - 文件通配符
  RandomPassNumber   - 指定随机数据覆盖的次数,默认为 6
  -s                 - 包含子目录(危险!)
  -logfile:          - 指定一个日志记录文件
  -loglevel          - 指定日志的详细程度,可以是:
                         DebugOnly (最详细)
                         Info (默认)
                         Warning
                         Error
                         FatalError
                         Disabled (禁用日志功能)
  -priority:         - 指定进程的运行优先级,可以是:
                         Idle
                         BelowNormal
                         Normal (默认)
                         AboveNormal

===============================================================================
使用范例:
  filewipe *.doc
  filewipe MyDoc.txt 2
  filewipe * 15 /logfile:"C:\wipe.log"
  filewipe * /s /priority:BelowNormal


 

注意事项
文件擦除是 IO 密集型操作,并且为了保证可靠性跳过了操作系统的文件缓冲和磁盘调度机制,这些都是以降低工作性能为代价的。典型用例下(例如:从公司离职前的数据清洗),用户经常希望擦除大量数据(OutLook 文件夹超过10G的人不在少数)。在开始之前,您应当认识到这是一个耗时操作,可能需要花费数小时才能完成。

如果希望在操作期间继续使用计算机,偶建议您使用 "-priority" 选项将 filewipe 的运行优先级设定为 "Idle" 或 "BelowNormal",这样它就能够安静地在后台运行,而您也可以在此期间继续使用计算机。

上传的附件 filewipe.rar (66.8 KB, 299 次查看)
GUI_Front.rar (13.6 KB, 262 次查看)
作者: AppleWolf     时间: 2008-9-17 01:54
你要的工具,官方下载在这里。
http://baiy.cn/utils/filewipe/index.htm
作者: tireless     时间: 2008-9-17 07:45
用微软的 sdelete  吧

[ Last edited by tireless on 2008-9-16 at 11:46 AM ]
作者: qwertl     时间: 2008-9-17 13:42
谢谢!安全删除还有什么好的图形窗口软件呢?

[ Last edited by qwertl on 2009-2-11 at 12:29 ]




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5