m |
Maroonbells (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{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. | + | {{mirc title|$tempfn identifier}}'''$tempfn''' returns a temporary filename in the {{mIRC|$mircdir}} using the same filename mask used by mIRC internally, such as for the {{mIRC|/write}} command. |
− | |||
− | |||
== Synopsis == | == Synopsis == | ||
<pre>$tempfn</pre> | <pre>$tempfn</pre> | ||
− | |||
== Parameters == | == Parameters == | ||
None | None | ||
− | |||
== Properties == | == Properties == | ||
None | None | ||
− | |||
== Example == | == Example == | ||
<pre>//echo -a $tempfn</pre> | <pre>//echo -a $tempfn</pre> | ||
− | It does not create the filename, but offers the | + | It does not create the disk filename, but offers the string as a "safe" filename that can be used without it already existing as a disk file. |
− | + | The string returned is $mircdir $+ mirc $+ $rand(0,999998) $+ .tm_ | |
− | '''Note:''' The filename is | + | '''Note:''' The filename mask is the same used internally by mIRC for disk write fuctions, such as in the /write command. If a file you /write to disappears, it's possible that it exists in the same folder with a filename matching the wildcard mirc*.tm_. |
== Compatibility == | == Compatibility == | ||
{{mIRC compatibility|7.46}} | {{mIRC compatibility|7.46}} | ||
− | |||
== See also == | == See also == | ||
* {{mIRC|$mircdir}} | * {{mIRC|$mircdir}} | ||
− | |||
− | |||
− |
Revision as of 18:11, 10 August 2020
$tempfn returns a temporary filename in the $mircdir using the same filename mask used by mIRC internally, such as for the /write command.
Synopsis
$tempfn
Parameters
None
Properties
None
Example
//echo -a $tempfn
It does not create the disk filename, but offers the string as a "safe" filename that can be used without it already existing as a disk file.
The string returned is $mircdir $+ mirc $+ $rand(0,999998) $+ .tm_
Note: The filename mask is the same used internally by mIRC for disk write fuctions, such as in the /write command. If a file you /write to disappears, it's possible that it exists in the same folder with a filename matching the wildcard mirc*.tm_.
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.