mIRC Home    About    Download    Register    News    Help

Print Thread
#105929 22/12/04 08:19 AM
R
RockHound
RockHound
R
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?

#105930 22/12/04 08:27 AM
D
DixrouE
DixrouE
D
$bytes($disk(c:).size).suf

#105931 22/12/04 08:32 AM
R
RockHound
RockHound
R
Ty was having hard time trying to remember and find it in help file

#105932 22/12/04 07:43 PM
Joined: Aug 2004
Posts: 237
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Aug 2004
Posts: 237
and how to return the used space in gb?

#105933 22/12/04 07:54 PM
Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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

#105934 22/12/04 07:57 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Code:
$calc($bytes($disk(c:).size) - $bytes($disk(c:).free)) $+ GB

maybe?


Link Copied to Clipboard