Hard Disk information.

By ReQueST on Mar 16, 2005

Messages disk options to the channel your on. (Disk as in C:\,.. etc..)

alias hdisk {
  var %a = 1, %b = $disk(0)
  while (%a <= %b) {
    if ($disk(%a) == $true) {
      .timer 1 %a msg $chan 4Disk: $disk(%a).path $+ ; 4Type: $disk(%a).type $+ ; 4Size: $bytes($disk(%a).size,b3).suf $+ ; 4Free: $bytes($disk(%a).free,b3).suf 12( $+ $round($calc(($disk(%a).free / $disk(%a).size) * 100),2) $+ % $+ 12)
    }
    if ($disk(%a) == $false) {
      .timer 1 %a msg $chan 4Disk: $disk(%a).path $+ ; 4Type: $replace($disk(%a).type,removable,floppy) $+ .
    }
    inc %a
  }
}

Comments

Sign in to comment.
AlexHopper   -  Nov 12, 2008

alias hd

 Respond  
Ville   -  Mar 19, 2005

I like this. Good work.

 Respond  
xDaeMoN   -  Mar 16, 2005
 Respond  
ch1zra   -  Mar 16, 2005

nice work. I always love some nice usage of basic identifiers :D

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.