$hostDisk
A Compact Function resolving data about your hosts Disk Drive with 21 options to choose from.

FUNCTION USAGE

    $hostDisk[option]

Properties:

option - The data option.

OPTIONS:

Option
Description
available
Available Disk space measured in bytes.
bytespersector
Amount of Disk space measured in bytes per sector.
cylindersperhead
Amount of cylinders in each head.
firmwareversion
The current version of your Disk Drive Firmware
fstype
The type of file system your Disk Drive is using.
isremovable
Returns true if the Disk Drive is removable. Otherwise, function returns false.
name
The name of the Disk Drive.
percentused
The percent of Disk space currently being used.
physical
The physical location of the Disk Drive.
sectorspertrack
Amount of sectors in each track.
serialnumber
Your Disk Drive Serial Number.
size
The total size of the Disk Drive measured in bytes.
status
The status of the Disk Drive. Will normally be ok unless something is wrong.
storagetype
The type of Storage Drive.
totalcylinders
The total amount of cylinders in the Disk Drive. Cylinders are in Heads.
totalheads
The total amount of heads in the Disk Drive. Heads are in the Disk Drive.
totalsectors
The total amount of sectors in the Disk Drive. Sectors are in Tracks.
totaltracks
The total amount of tracks in the Disk Drive. Tracks are in Cylinders.
trackspercylinder
The total amount of tracks in each cylinder.
type
The type of Disk Drive.
used
The amount of space currently being used measured in bytes.

Example 1: Returns the type of your Disk Drive

1
bot.Command({
2
name: "test",
3
code: `
4
$hostDisk[type]
5
`
6
})
Copied!

Example 2: Returns the name of your Disk Drive

1
bot.Command({
2
name: "test",
3
code: `
4
$hostDisk[name]
5
`
6
})
Copied!
Last modified 1mo ago
Copy link