$file » History » Revision 8
Revision 7 (Per Amundsen, 12/08/2019 11:12 AM) → Revision 8/10 (Per Amundsen, 01/30/2021 12:23 AM)
_Added in 1.8.10_
*$file(filename|foldername|name)*
Returns information about the specified file or folder.
Default returns file size.
_Same as [[$lof]]._
*Parameters*
filename|foldername|name - Filename or folder or open file in [[$fopen]] 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.
.path - The path directory.
.name - The filename without the file extension.
.ext - The file extension.
.pid - Returns the first process id started by this file.
*Example*
<pre>
; Show AdiIRC.exe filesize
//echo -ag $file($adiircexe).size
; Show explorer.exe digital signature
//echo -ag $file(c:\windows\explorer.exe).sig
</pre>