mIRC Homepage
Posted By: RockHound return file/drive size - 22/12/04 08:19 AM
I have not been around scripting for long time so please bear with me. Im trying to get the $disk(c:).size to return as 64GB. How would I do this with out using a calcultation?
Posted By: DixrouE Re: return file/drive size - 22/12/04 08:27 AM
$bytes($disk(c:).size).suf
Posted By: RockHound Re: return file/drive size - 22/12/04 08:32 AM
Ty was having hard time trying to remember and find it in help file
Posted By: LethPhaos Re: return file/drive size - 22/12/04 07:43 PM
and how to return the used space in gb?
Posted By: FiberOPtics Re: return file/drive size - 22/12/04 07:54 PM
Usage: $hdused(drive)

Examples: //echo -a Used: $hdused(c) * $hdused(d)

alias hdused return $bytes($calc($disk($1).size - $disk($1).free),g).suf

Didn't add any error checking, I leave that for you grin

Greets
Posted By: SladeKraven Re: return file/drive size - 22/12/04 07:57 PM
Code:
$calc($bytes($disk(c:).size) - $bytes($disk(c:).free)) $+ GB

maybe?
© mIRC Discussion Forums