From WikiChip
Editing mirc/identifiers/$file
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{mirc title|$file Identifier}}'''$file''' | + | {{mirc title|$file Identifier}}'''$file''' will return information about a specified file. If no .property is specified, the size in bytes will be returned by default. |
− | |||
− | |||
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
− | <pre>$file(filename). | + | <pre>$file(filename)[.property]</pre> |
− | |||
== Parameters == | == Parameters == | ||
− | + | <span style="display: inline-block; width: 75px;">'''filename'''</span>The filename or directory to any local or networked resource, optionally including absolute or relative path (relative to [[$scriptdir]]). | |
− | |||
− | |||
== Properties == | == Properties == | ||
− | + | {| class="wikitable" style="margin-left: 75px;" | |
− | + | |- | |
− | + | ! Property !! Description | |
− | + | |- | |
− | + | | '''.size''' || Returns the file's size in bytes. (default) (see: [[$bytes]]) | |
− | + | |- | |
− | + | | '''.ctime''' || Returns the file's creation time. (see: [[$asctime]]) | |
− | + | |- | |
− | + | | '''.mtime''' || Returns the file's modification time. (see: [[$asctime]]) | |
− | + | |- | |
− | + | | '''.atime''' || Returns the file's last access time. (see: [[$asctime]]) | |
− | + | |- | |
− | + | | '''.shortfn''' || Returns the file's short filename (if it has one). | |
− | + | |- | |
− | + | | '''.longfn''' || Returns the file's long filename. | |
− | + | |- | |
− | + | | '''.attr''' || Returns the file's attributes. | |
− | + | |- | |
− | + | | '''.sig''' || Checks digital signature of an executable/DLL file. (Returns: ok, fail, none) | |
− | + | |- | |
− | + | | '''.version''' || Returns the file's ''file version'' if executable/DLL. | |
− | + | |- | |
− | + | | '''.product''' || Returns the file's ''product version'' if executable/DLL. | |
− | + | |- style="vertical-align:top;" | |
− | + | | '''.flags''' || Returns the file's ''file flags'' if executable/DLL, as explained below. | |
− | + | The value will be a combination bitmask that specifies the compile time attributes of the file. | |
− | + | '''1: DEBUG''' - The file contains debugging information or is compiled with debugging features enabled. | |
− | + | '''2: PRERELEASE''' - The file is a development version, not a commercially released product. | |
− | + | '''4: PATCHED''' - The file has been modified and is not identical to the original shipping file of the same version number. | |
− | + | '''8: PRIVATEBUILD''' - The file was not built using standard release procedures. | |
− | + | '''16: INFOINFERRED''' - The file's version structure was created dynamically; therefore, some of the members in this structure may be empty or incorrect. | |
− | + | '''32: SPECIALBUILD''' - The file was built by the original company using standard release procedures but is a variation of the normal file of the same version number. | |
− | + | See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms646997(v=vs.85).aspx | |
− | + | |} | |
− | |||
− | |||
== Example == | == Example == | ||
Line 64: | Line 55: | ||
== See Also == | == See Also == | ||
+ | {{mIRC|File Handling}} | ||
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
[[Category:mIRC identifiers|file]] | [[Category:mIRC identifiers|file]] |