From WikiChip
Difference between revisions of "mirc/identifiers/$disk"
(Created page with "{{mirc title|$disk Identifier}}'''$disk''' returns informations about hard disks == Synopsis == <pre>$disk(N/path)</pre> == Paramters == * '''N''' - The Nth hard disks avai...") |
(→Properties: added .type property possible types.) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{mirc title|$disk | + | {{mirc title|$disk identifier}}'''$disk''' returns informations about hard disks. |
+ | |||
== Synopsis == | == Synopsis == | ||
<pre>$disk(N/path)</pre> | <pre>$disk(N/path)</pre> | ||
− | == | + | == Parameters == |
* '''N''' - The Nth hard disks available, if N = 0, returns the total available drives | * '''N''' - The Nth hard disks available, if N = 0, returns the total available drives | ||
Line 13: | Line 14: | ||
== Properties == | == Properties == | ||
− | * '''type''' - returns the type of drive, | + | * '''type''' - returns the type of drive; values are ''fixed'', ''removable'', ''cdrom'', ''ramdisk'', ''remote'', and ''unknown''. |
* '''free''' - returns the number of free space on drive in bytes | * '''free''' - returns the number of free space on drive in bytes | ||
* '''label''' - returns the name/label of the drive, if any | * '''label''' - returns the name/label of the drive, if any | ||
− | * ''' size''' - returns the total size of the drive | + | * '''size''' - returns the total size of the drive |
* '''unc''' - returns the path for a network drive. | * '''unc''' - returns the path for a network drive. | ||
* '''path''' - returns the path of the drive | * '''path''' - returns the path of the drive | ||
Line 26: | Line 27: | ||
{{mIRC compatibility|5.6}} | {{mIRC compatibility|5.6}} | ||
− | == See | + | == See also == |
− | + | {{mIRC identifier list}} | |
− | [[Category:mIRC identifiers]] | + | [[Category:mIRC identifiers|disk]] |
Latest revision as of 20:54, 1 February 2021
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$disk returns informations about hard disks.
Synopsis[edit]
$disk(N/path)
Parameters[edit]
- N - The Nth hard disks available, if N = 0, returns the total available drives
- path - a drive name
Without a property, returns $true if drive exists, otherwise $false
Properties[edit]
- type - returns the type of drive; values are fixed, removable, cdrom, ramdisk, remote, and unknown.
- free - returns the number of free space on drive in bytes
- label - returns the name/label of the drive, if any
- size - returns the total size of the drive
- unc - returns the path for a network drive.
- path - returns the path of the drive
Example[edit]
//echo -a $disk(0)
Compatibility[edit]
Added: mIRC v5.6
Added on: 03 Jun 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See also[edit]
mIRC identifier list