biu.me

可以按照时间批量删除文件的mini软件—DelAge32

数据库备份各两天就把300GB的硬盘给塞满了,本来想写批处理来删,不过很久没写了,不会了。Google了一下找到了这个软件,扫毒安全。

下面的介绍复制自官网

DelAge32 is a command line tool that deletes or moves files by age (number of days).

The age is calculated as date difference at local time. By default the “last modified” file stamp is taken to calculate the age (see options /created, /modified and the note about file stamps).

Syntax: DelAge32 filespec days [options]
Examples: DelAge32 C:\some\where\*.* 100 /recurse
DelAge32 there\*.tmp 1 /created /includeRO
Delage32 *.zip 35
filespec File name search pattern (wildcards) with full or relative path.
days Number of days: minimum age of files to delete or move
options Options begin with a slash, case ignored.
All command arguments must be separated by blank space!
/preview The files will not be deleted or moved, but only listed with age.
/created The “created” time stamp is taken to calculate the age. Default is the “last modified” stamp. See note about file stamps (below)
/modified The “last modified” time stamp is taken to calculate the age. This is the default. However, when used in conjunction with the /created option, the most recent one of these two stamps is taken.
/accessed The “last access” time stamp is taken to calculate the age.
/includeRO Include files with Read-Only attribute
/includeH Include files with Hidden attribute
/includeS Include files with System attribute
/includeRHS = /includeRO /includeH /includeS
/recurse Recurse through the entire subdirectory structure (see /rd option to remove empty directories)
/subonly Recurse, but exclude the initial directory
/rd Remove empty subdirectories regardless of age (initial directory will not be removed).
Note: /preview will not make any /rd predictions.
/move target Move files instead of deleting; specify target directory. This works across drives.
Note: If a target file exists, it will be overwritten without warning!
/quiet No output (makes no sense with the /preview option). By default all deleted or moved files are listed with age (number of days).
The output can be redirected to a file (OEM format).

官网地址:http://home.mnet-online.de/horst.muc/win/delage.htm

我用到的命令是 delage32.exe “E:\Files Backup\*.*” 7 /recurse

相关日志:

  1. 奥巴马在上海与大学生对话视频
  2. 试用一下wordpress代码显示插件
  3. 写了一个方便自己设置IIS的GUI
  4. 解除黑莓BES防火墙锁/IT策略的方法(之一)
  5. Javaloader使用[转载]

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

*


您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。