Project

General

Profile

$file » History » Version 9

Per Amundsen, 04/04/2022 07:27 AM

1 1 Per Amundsen
_Added in 1.8.10_
2
3 7 Per Amundsen
*$file(filename|foldername|name)*
4 1 Per Amundsen
5
Returns information about the specified file or folder.
6
7
Default returns file size.
8
9 3 Per Amundsen
_Same as [[$lof]]._
10
11 1 Per Amundsen
*Parameters*
12
13 7 Per Amundsen
filename|foldername|name - Filename or folder or open file in [[$fopen]] to retrieve information from.
14 1 Per Amundsen
15
*Properties*
16
17
.size - File size in bytes. (returns 0 for folders)
18
.ctime - Creation time. (unix timestamp)
19
.mtime - Last modification time. (unix timestamp)
20
.atime - Last access time. (unix timestamp)
21
.shortfn - Short file name.
22
.longfn - Full file name.
23
.attr - File attributes.
24 5 Per Amundsen
.sig - Returns "ok" if digital signed, else "none".
25
.version - Returns the file version, if any.
26
.path - The path directory.
27
.name - The filename without the file extension.
28
.ext - The file extension.
29 9 Per Amundsen
.pid - Returns the first process id started by this file. *(AdiIRC Only)*
30 6 Per Amundsen
31 1 Per Amundsen
*Example*
32
33
<pre>
34 2 Per Amundsen
; Show AdiIRC.exe filesize
35 1 Per Amundsen
//echo -ag $file($adiircexe).size
36
37 2 Per Amundsen
; Show explorer.exe digital signature
38 1 Per Amundsen
//echo -ag $file(c:\windows\explorer.exe).sig
39
</pre>