From WikiChip
Difference between revisions of "mirc/identifiers/$shortfn"
< mirc‎ | identifiers

(Created page with " {{mirc title|$shortfn Identifier}}'''$shortfn(path)''' Returns short version of a long filename. == Synopsis == <source lang="mIRC"> $shortfn(path)</source> == Parameters...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
{{mirc title|$shortfn identifier}}'''$shortfn(path)''' returns short version of a long filename.
  
 
{{mirc title|$shortfn Identifier}}'''$shortfn(path)''' Returns short version of a long filename.
 
  
 
== Synopsis ==
 
== Synopsis ==
<source lang="mIRC">
+
<source lang="mIRC">$shortfn(path)</source>
$shortfn(path)</source>
 
  
 
== Parameters ==
 
== Parameters ==
 
+
'''Path''' = ''The direction/path that you want to check for.''
'''* Path''' = ''The direction/path that you want to check for.''
 
  
 
== Properties ==
 
== Properties ==
 
 
None
 
None
  
Line 24: Line 20:
 
It will return "'''C:\Users\westor\DOCUME~1\mIRC\'''" short path version of the long version one that you have specified.
 
It will return "'''C:\Users\westor\DOCUME~1\mIRC\'''" short path version of the long version one that you have specified.
  
 
+
'''Note:''' In order to return the short version of the path, the path MUST exist.
'''NOTE:''' In order to return the short version of the path, the path MUST be exists.
 
  
 
== Compatibility ==
 
== Compatibility ==
Line 31: Line 26:
  
 
== See Also ==
 
== See Also ==
[[Category:MIRC identifiers]]
 
 
* {{mIRC|$longfn}}
 
* {{mIRC|$longfn}}
 
* {{mIRC|$exists}}
 
* {{mIRC|$exists}}
 
* {{mIRC|$isdir}}
 
* {{mIRC|$isdir}}
 
* {{mIRC|$mircdir}}
 
* {{mIRC|$mircdir}}
 +
{{mIRC identifier list}}
 +
[[Category:mIRC identifiers|shortfn]]

Latest revision as of 14:27, 22 September 2017

$shortfn(path) returns short version of a long filename.


Synopsis[edit]

$shortfn(path)

Parameters[edit]

Path = The direction/path that you want to check for.

Properties[edit]

None

Examples[edit]

//echo -a $shortfn($longfn($mircdir))

It will return for example the "C:\Users\westor\DOCUME~1\mIRC\" short path version of the specified direction.

//echo -a $shortfn(C:\Users\westor\Documents\mIRC\)

It will return "C:\Users\westor\DOCUME~1\mIRC\" short path version of the long version one that you have specified.

Note: In order to return the short version of the path, the path MUST exist.

Compatibility[edit]

Added: mIRC v5.7
Added on: 02 Feb 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list