WinUtilis
__

File Remover

Description:

Windows command line tool that removes, deletes files older than x days.

Download binary:

Current Version: 1.11b -> fr.zip

Output example:

 Command Prompt
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>
C:\>fr.exe

 fr.exe v1.11b - File Remover
 Copyright (C) 1998-2008 Javier Hernandez
 WinUtilis - www.winutilis.net
 Last update - April 06 2008


 Removes or list file(s) older than (x)days (x)hours (x)minutes.

 fr [/C] [/D] [/E] [/F] [/L ] [/M] [/N] [/P] [/R] [/V] [/X] [/Z]

 /C     Log to console.

 /D     Valid days for the files. The default is 10 days.
        If a file is older than valid days it will be listed
        or erased. Note that you can specify hours and minutes
        like this: /d 7 3 30  Meaning 7 days 3 hours and 30 minutes.

 /E     Remove empty directories.
        Note that when listing (not using the -z & -r switches)
        if a folder A contains an empty subfolder B, A is not
        marked as empty. Nevertheless, because of recursion
        empty folders are deleted when using -z & -r switches.

 /F     Specifies drive and directory to scan.

 /L      Activate the log file.
        Default file name is fr.log
        This file is created where fr.exe is located if
         is not specified.

 /M [n] Indicates the type of date to be used for the file
        selection.

        0 = Date Created (default)
        1 = Date Modified
        2 = Date Accessed ( if NtfsDisableLastAccessUpdate is not enabled )

        syntax example: -m 2


 /N     No logo. No banner will be shown at execution time.

 /P     Logfile in .csv format (comma separated values).

 /R     Recursive scan. (Search subdirectories/folders)

 /V     Version information.

 /X     Wildcard filter.
        ex: *.log | *scm*.log | *.gif;*.chm | etc...
        ( * is the default extension )

 /Z     If this parameter is entered then the files WILL BE ERASED.
        Otherwise files are just listed/logged if using -c or -l.


        Examples:

        ex 1: Scanning files older than 0 day(s), 1 hour(s), and 0 minute(s).
              fr -x * -f e:\temp\files\ -d 0 1 -c

        ex 2: Recursive scanning, logging to .csv file/console and DELETING files
              older than 25 day(s), 0  hour(s), and 0 minute(s):

              fr -x *.txt -f C:\buffer -d 25 -r -c -p -l e:\logs -z

        ex 3: Listing all files that have not beeing Accessed for the last 17 days:

              fr -f C:\datafiles\ -d 17 -m 2 -c

C:\>
C:\>
C:\>fr -f C:\temp -d 17 -m 2 -c -n

File extension: *
Using: Date Accessed
Folder: C:\temp
Scanning files older than 17 day(s), 0  hour(s), and 0  minute(s).

       id                       matched    filesize                      filedate  filename
        1        16-April-2008 16:23:12        7989      19-January-2008 13:54:25  C:\temp\Configuration.txt
        2        16-April-2008 16:23:12        2917     19-November-2007 12:30:21  C:\temp\doppler.vbs
        3        16-April-2008 16:23:12        5101     19-November-2007 12:30:21  C:\temp\functions.js
        4        16-April-2008 16:23:12      494954     19-November-2007 12:30:21  C:\temp\GsitemapSetup.exe
        5        16-April-2008 16:23:12     1123613     19-November-2007 12:30:21  C:\temp\guide-digital-tv-configuration.pdf
        6        16-April-2008 16:23:12     1475160     28-February-2008 20:25:10  C:\temp\Install.zip
        7        16-April-2008 16:23:12        4944     19-November-2007 12:30:27  C:\temp\result.txt
        8        16-April-2008 16:23:12     1181059     28-February-2008 20:25:10  C:\temp\truecrypt-4.3a-source-code.zip
        9        16-April-2008 16:23:12     1567325     28-February-2008 20:25:10  C:\temp\truecrypt-4.3a.zip
       10        16-April-2008 16:23:12          66     19-November-2007 12:30:27  C:\temp\truecrypt-4.3a.zip.sig
       11        16-April-2008 16:23:12         268     19-November-2007 12:30:27  C:\temp\2uni.cmd
       12        16-April-2008 16:23:12        7623     28-February-2008 20:25:10  C:\temp\yangtz.zip

- Matched: 5871019 bytes
C:\>
C:\>
 
© 2006 Javier Hernandez. All rights reserved. Terms of Use


MIT OpenCourseWare: I'm invested