$file » History » Version 1
Per Amundsen, 07/07/2014 10:18 AM
1 | 1 | Per Amundsen | _Added in 1.8.10_ |
---|---|---|---|
2 | |||
3 | *$file(filename|foldername)* |
||
4 | |||
5 | Returns information about the specified file or folder. |
||
6 | |||
7 | Default returns file size. |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | filename|foldername - Filename or folder to retrieve information from. |
||
12 | |||
13 | *Properties* |
||
14 | |||
15 | .size - File size in bytes. (returns 0 for folders) |
||
16 | .ctime - Creation time. (unix timestamp) |
||
17 | .mtime - Last modification time. (unix timestamp) |
||
18 | .atime - Last access time. (unix timestamp) |
||
19 | .shortfn - Short file name. |
||
20 | .longfn - Full file name. |
||
21 | .attr - File attributes. |
||
22 | .sig - returns "ok" if digital signed, else "none". |
||
23 | |||
24 | *Example* |
||
25 | |||
26 | <pre> |
||
27 | ;Show AdiIRC.exe filesize |
||
28 | //echo -ag $file($adiircexe).size |
||
29 | |||
30 | ;Show explorer.exe digital signature |
||
31 | //echo -ag $file(c:\windows\explorer.exe).sig |
||
32 | </pre> |