From WikiChip
Difference between revisions of "mirc/identifiers/$lof"
(→Examples) |
m |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{mirc title|$lof Identifier}}'''$lof(filename)''' returns the bytes size information about the specified file, same as ''$file().size'' identifier. | ||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
Line 22: | Line 21: | ||
<source lang="mIRC">//echo -a $lof(mirc.ini)</source> | <source lang="mIRC">//echo -a $lof(mirc.ini)</source> | ||
− | It will return the bytes size of the mirc.ini file that you already using. | + | It will return the bytes size (e.g: 14056) of the mirc.ini file that you already using. |
<source lang="mIRC">//echo -a $bytes($lof($mircini)).suf</source> | <source lang="mIRC">//echo -a $bytes($lof($mircini)).suf</source> | ||
− | It will return the original size of the mirc.ini file that you already using. | + | It will return the original size (e.g: 14KB) of the mirc.ini file that you already using. |
+ | |||
'''NOTE:''' It will return "'''$null'''" if the file doesn't exists to the path. | '''NOTE:''' It will return "'''$null'''" if the file doesn't exists to the path. | ||
Line 33: | Line 33: | ||
{{mIRC compatibility|4.52}} | {{mIRC compatibility|4.52}} | ||
− | == See | + | == See also == |
− | + | * {{mIRC|$bytes}} | |
* {{mIRC|$file}} | * {{mIRC|$file}} | ||
+ | * {{mIRC|$mircdir}} | ||
* {{mIRC|$mircini}} | * {{mIRC|$mircini}} | ||
− | |||
* {{mIRC|$null}} | * {{mIRC|$null}} | ||
+ | {{mIRC identifier list}} | ||
+ | [[Category:mIRC identifiers|lof]] |
Latest revision as of 16:28, 20 September 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$lof(filename) returns the bytes size information about the specified file, same as $file().size identifier.
Synopsis[edit]
$lof(filename)
Parameters[edit]
* Filename = The filename that you want to check for.
Properties[edit]
None
Examples[edit]
//echo -a $lof($mircexe)
It will return the bytes size of the mirc.exe file that you already using.
//echo -a $lof(mirc.ini)
It will return the bytes size (e.g: 14056) of the mirc.ini file that you already using.
//echo -a $bytes($lof($mircini)).suf
It will return the original size (e.g: 14KB) of the mirc.ini file that you already using.
NOTE: It will return "$null" if the file doesn't exists to the path.
Compatibility[edit]
Added: mIRC v4.52
Added on: 06 Jul 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC identifier list