Project

General

Profile

$file » History » Version 2

Per Amundsen, 08/11/2015 01:14 PM

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 2 Per Amundsen
; Show AdiIRC.exe filesize
28 1 Per Amundsen
//echo -ag $file($adiircexe).size
29
30 2 Per Amundsen
; Show explorer.exe digital signature
31 1 Per Amundsen
//echo -ag $file(c:\windows\explorer.exe).sig
32
</pre>