FILEINFO — Display information about files.

Syntax:
FILEINFO /A:attribs /C:hash /D /N:flags /O:flags /P /S /T:flags /[range] file…

/A:attribsfilter by attributes
/C:hashchecksum and hash algorithms; see below
/Ddisable highlight
/N:flagsdisable features; see below
/O:flagsomit features; see below
/Ppage output
/Slook in subdirectories for matching files
/T:modetime display mode; see below
/[range]many range options are supported
filewildcards, 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:

Cdisable highlight
Ddo not search into hidden directories
Fsuppress file-not-found errors
Jdo not search into junctions
Zdo not search into system directories

/O: omits classes of information. These flags can be combined:

Aomit attributes
Comit checksums
Domit file descriptions
Eomit text file encoding
Homit file version header
Iomit image file info
Lomit link targets
Pomit Windows properties
Somit document summary information
Tomit time stamps
Vomit version information
Xomit executable information
Zomit 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:

CRC32CKSUMMD5
SHA1SHA256SHA384
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:

Ashow the last-access time stamp
Cshow the creation time stamp
Mshow the last-modified time stamp
Ddefault: localize time stamps as TCC and CMD.EXE do
Llocal times, taking DST time changes into account
UCoordinated 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"