Project

General

Profile

Actions

$file » History » Revision 4

« Previous | Revision 4/10 (diff) | Next »
Per Amundsen, 05/31/2016 08:38 PM


Added in 1.8.10

$file(filename|foldername)

Returns information about the specified file or folder.

Default returns file size.

Same as $lof.

Parameters

filename|foldername - Filename or folder to retrieve information from.

Properties

.size - File size in bytes. (returns 0 for folders)
.ctime - Creation time. (unix timestamp)
.mtime - Last modification time. (unix timestamp)
.atime - Last access time. (unix timestamp)
.shortfn - Short file name.
.longfn - Full file name.
.attr - File attributes.
.sig - returns "ok" if digital signed, else "none".
.version - returns the file version, if any.

Example

; Show AdiIRC.exe filesize
//echo -ag $file($adiircexe).size

; Show explorer.exe digital signature
//echo -ag $file(c:\windows\explorer.exe).sig

Updated by Per Amundsen over 8 years ago · 4 revisions

Also available in: PDF HTML TXT