From WikiChip
Difference between revisions of "mirc/identifiers/$getdir"
Maroonbells (talk | contribs) (Created content for empty page) |
Maroonbells (talk | contribs) m |
||
Line 6: | Line 6: | ||
== Parameters == | == Parameters == | ||
− | <span style="display: inline-block; width: | + | <span style="display: inline-block; width: 90px;">'''Filespec'''</span> If specified, returns mIRC-Options/DCC/Folders/DCC GET directory for that filespec |
== Example == | == Example == |
Revision as of 12:22, 20 June 2017
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
The $getdir identifier returns either the default DCC GET directory, or the DCC GET directory for the specified filespec.
Synopsis
$getdir[( filespec )]
Parameters
Filespec If specified, returns mIRC-Options/DCC/Folders/DCC GET directory for that filespec
Example
//if ($sound(*.mp3) != $getdir(*.mp3)) echo -a warning: MP3's do not download into the MP3 SOUND folder!
//echo -a The default DCC GET folder for filetypes not defined in mIRC-options/dcc/folders is $getdir
on *:FILESENT:*:{ if ($getdir($filename) == $nofile($filename)) echo -a Note: $filename was sent from the DCC GET folder for that filename. }
Compatibility
Added: mIRC v4.52
Added on: 06 Jul 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.