Incode Systems Home Page Incode Systems, Inc.


FILESIZE



(Windows Program 95 or higher)

FileSize - Copyright (C) 1992-2011, Incode Systems, Inc.

Usage: [options] FileSpec [BYTES]
FileSpec identifies the file(s) (? and * allowed).
Writes file size, or the sum of the file sizes to the standard output.
If BYTES is given, ERRORLEVEL is set to 1 if size > BYTES.
Options: (may be preceeded with - or /)
-a return only files matching given attributes:
archive, directory, system, hidden, readonly
examples: -ar returns ReadOnly files, -arh Hidden, ReadOnly
-c use thousands separator
-d:m-d-yyyy (or -d:+m-d-yyyy) select files with date >= given date
-d:=m-d-yyyy select files with date = given date
-d:-m-d-yyyy select files with date < given date
-d:--n files with date < date today - n days
-d:+-n files with date >= date today - n days
-d:=-n files with date = date today - n days
-eq ERRORLEVEL 1 if BYTES is equal to file size sum
-f Return file names for files which compare to BYTES
-gt ERRORLEVEL 1 if BYTES is greater than file size sum (default)
-gte ERRORLEVEL 1 if BYTES is greater than or equal to file size sum
-l File size is returned as lines (BYTES is considered a line count)
-lt ERRORLEVEL 1 if BYTES is less than file size sum
-lte ERRORLEVEL 1 if BYTES is less than or equal to file size sum
-s search subdirectories
-ta Use Last Access time
-tc Use Creation time
-ta Use Last Written time (default)
-t:h:mm:ss select files with time >= given time
-t:=h:mm:ss select files with time = given time
-t:-h:mm:ss select files with time < given time
-t:--n files with time < current time - n minutes
-t:+-n files with time >= current time - n minutes
-t:=-n files with time = current time - n minutes
-u UTC time for selection

Individual file sizes and sums may be up to:
9,223,372,036,854,775,807 (2e63-1) bytes, which is
9,223,372 terabytes or 8,388,608 tebibytes.

ERRORLEVEL is set to 2 if a parameter error is found.

Version 1.0.1
www.incodesystems.com
mailto:info1To see complete usage, type FileSize /? | more