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''' can be used in two ways: | {{mirc title|$file Identifier}}'''$file''' can be used in two ways: | ||
− | + | '''$file(filename).prop''' return information about a specified file. If no .property is specified, the size in bytes will be returned by default. | |
− | + | '''$file="title" dir''' this is an old syntax, display the select file dialog, this has been replaced by {{mIRC|$sfile}} | |
Line 11: | Line 11: | ||
== Parameters == | == Parameters == | ||
− | * '''filename''' - The filename or directory to any local or networked resource, optionally including absolute or relative path (relative to | + | * '''filename''' - The filename or directory to any local or networked resource, optionally including absolute or relative path (relative to [[$scriptdir]]). |
* '''title''' - the title of the dialog, the quote are optional if you don't use space, this parameter is optional: //echo -a $file c:\*.txt | * '''title''' - the title of the dialog, the quote are optional if you don't use space, this parameter is optional: //echo -a $file c:\*.txt | ||
* '''dir''' - the directory you want to display, you can put a file at the end which will be used to fill the 'filename' field in the dialog | * '''dir''' - the directory you want to display, you can put a file at the end which will be used to fill the 'filename' field in the dialog | ||
== Properties == | == Properties == | ||
− | + | * '''.size''' - Returns the file's size in bytes. (default) (see: [[$bytes]]) | |
− | * '''.size''' - Returns the file's size in bytes. (default) (see: | + | * '''.ctime''' - Returns the file's creation time. (see: [[$asctime]]) |
− | * '''.ctime''' - Returns the file's creation time. (see: | + | * '''.mtime''' - Returns the file's modification time. (see: [[$asctime]]) |
− | * '''.mtime''' - Returns the file's modification time. (see: | + | * '''.atime''' - Returns the file's last access time. (see: [[$asctime]]) |
− | * '''.atime''' - Returns the file's last access time. (see: | ||
* '''.shortfn''' - Returns the file's short filename (if it has one). | * '''.shortfn''' - Returns the file's short filename (if it has one). | ||
* '''.longfn''' - Returns the file's long filename. | * '''.longfn''' - Returns the file's long filename. | ||
− | * '''.attr''' - Returns the file | + | * '''.attr''' - Returns the file's attributes. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* '''.sig''' - Checks digital signature of an executable/DLL file. (Returns: ok, fail, none) | * '''.sig''' - Checks digital signature of an executable/DLL file. (Returns: ok, fail, none) | ||
− | |||
− | |||
− | |||
* '''.version''' - Returns the file's ''file version'' if executable/DLL. | * '''.version''' - Returns the file's ''file version'' if executable/DLL. | ||
* '''.product''' - Returns the file's ''product version'' if executable/DLL. | * '''.product''' - Returns the file's ''product version'' if executable/DLL. | ||
Line 64: | Line 46: | ||
== See Also == | == See Also == | ||
+ | {{mIRC|File Handling}} | ||
{{mIRC identifier list}} | {{mIRC identifier list}} | ||
[[Category:mIRC identifiers|file]] | [[Category:mIRC identifiers|file]] |