Maroonbells (talk | contribs) (Create content for empty page) |
m |
||
Line 1: | Line 1: | ||
− | {{mirc title|$tempfn | + | {{mirc title|$tempfn identifier}}'''$tempfn''' returns a temporary filename in the {{mIRC|$mircdir}} using the same filename mask used by mIRC for the {{mIRC|/write}} command. |
− | |||
== Synopsis == | == Synopsis == | ||
Line 9: | Line 8: | ||
== Example == | == Example == | ||
+ | <pre>//echo -a $tempfn</pre> | ||
− | + | It does not create the filename, but offers the filename as a "safe" filename that can be used without mIRC using the same filename. | |
− | |||
− | |||
− | + | For information, the string returned is $mircdir $+ mirc $+ $rand(100000,999999) $+ .tm_ | |
− | |||
− | |||
'''Note:''' The filename is safe from being re-used by mIRC in the near future. The fact that your $mircdir isn't littered with .tm_ files means that mIRC cleans up these temp files, either at QUIT or START. If a file you /write to disappears, it's possible that it exists in the same folder with a different N. | '''Note:''' The filename is safe from being re-used by mIRC in the near future. The fact that your $mircdir isn't littered with .tm_ files means that mIRC cleans up these temp files, either at QUIT or START. If a file you /write to disappears, it's possible that it exists in the same folder with a different N. | ||
Line 25: | Line 21: | ||
== See also == | == See also == | ||
* {{mIRC|$mircdir}} | * {{mIRC|$mircdir}} | ||
− | [[Category: | + | {{mIRC identifier list}} |
+ | |||
+ | [[Category:mIRC identifiers|tempfn]] |
Revision as of 15:12, 22 September 2017
$tempfn returns a temporary filename in the $mircdir using the same filename mask used by mIRC for the /write command.
Synopsis
$tempfn
Parameters
None
Example
//echo -a $tempfn
It does not create the filename, but offers the filename as a "safe" filename that can be used without mIRC using the same filename.
For information, the string returned is $mircdir $+ mirc $+ $rand(100000,999999) $+ .tm_
Note: The filename is safe from being re-used by mIRC in the near future. The fact that your $mircdir isn't littered with .tm_ files means that mIRC cleans up these temp files, either at QUIT or START. If a file you /write to disappears, it's possible that it exists in the same folder with a different N.
Compatibility
Added: mIRC v7.46
Added on: 01 Aug 2016
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.