FILEINFO
— Display information
about files.
Syntax:
FILEINFO
/A:
attribs /C:
hash /D /N:
flags /O:
flags /P /S /T:
flags /[
range]
file…
/A: attribs | filter by attributes |
/C: hash | checksum and hash algorithms; see below |
/D | disable highlight |
/N: flags | disable features; see below |
/O: flags | omit features; see below |
/P | page output |
/S | look in subdirectories for matching files |
/T: mode | time display mode; see below |
/[ range] | many range options are supported |
file | wildcards, directory aliases, include lists, and @ file lists are supported |
FILEINFO
displays information about files; go figure. By
default, the information shown includes the full, canonical filename; any
version information; any TCC file description; the file size, date and time
stamps, and attributes; CRC32 and MD5 checksums; 4DOS file descriptions;
executable types; Windows properties; and document summary information.
/N:
disables features. These flags
can be combined:
C | disable highlight |
D | do not search into hidden directories |
F | suppress file-not-found errors |
J | do not search into junctions |
Z | do not search into system directories |
/O:
omits classes of information.
These flags can be combined:
A | omit attributes |
C | omit checksums |
D | omit file descriptions |
E | omit text file encoding |
H | omit file version header |
I | omit image file info |
L | omit link targets |
P | omit Windows properties |
S | omit document summary information |
T | omit time stamps |
V | omit version information |
X | omit executable information |
Z | omit sizes |
Omitting information can make the command faster and reduce the amount
of text that is displayed. In particular, computing checksums for very large
files can be slow; using /OC
will save this time.
/C:
specifies the type of checksum
or hash displayed by FILEINFO
. The available algorithms are:
CRC32 | CKSUM | MD5 |
SHA1 | SHA256 | SHA384 |
SHA512 |
You can give more than one, separated by commas. If no /C:
is given, the default is /C:CRC32,MD5
.
/T:
selects which time stamps to
display, and how to show them. Flags may
include:
A | show the last-access time stamp |
C | show the creation time stamp |
M | show the last-modified time stamp |
D | default: localize time stamps as TCC and CMD.EXE do |
L | local times, taking DST time changes into account |
U | Coordinated Universal Time |
A
, C
, and M
may be combined. If
none is given, the default is to display all three time stamps. Only one
of D
, L
, and U
should be given; the
default is D
.
fileinfo "%_cmdspec"