Project

General

Profile

$file » History » Revision 2

Revision 1 (Per Amundsen, 07/07/2014 10:18 AM) → Revision 2/10 (Per Amundsen, 08/11/2015 01:14 PM)

_Added in 1.8.10_ 

 *$file(filename|foldername)* 

 Returns information about the specified file or folder. 

 Default returns file size. 

 *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". 

 *Example* 

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

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