Top

C: Space Meter


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  6.0 (of 2 scores)
Date Added  Jul 29, 2008
Last Updated  Jul 29, 2008
Tags  bytes  c  calculate  drive  meter  mirc  percent  size  space 

Introduction

Calculates the percentage of free space you have on your C: drive, and displays it in a text-based meter to the active channel. If you're not in a channel, it'll echo it. Type /spacemeter

Grab the Code

alias spacemeter {
  var %' = $calc($bytes($disk(c:).free) / $bytes($disk(c:).size)), %i = $calc(%' * 100), %o = $+($round(%i,2),$chr(37))
  var %bars = $round($calc(%' * 10),0), %notbars = $calc(10 - %bars), %m = c: space meter $+($chr(91),$chr(2),$chr(3),4,$str(>,%bars),$chr(15),$chr(3),14,$iif(%notbars != 0,$str(>,%notbars),$chr(15)),$chr(15),$chr(93)) %o free
  if ($active ischan) say %m
  else echo -a %m
}

Comments

  (2)  RSS
baseballer790
Comments: 19
 
mIRC Snippet:  C: Space Meter
Posted on Feb 13, 2009 4:04 pm
Lame
napa182
Comments: 1,454
 
mIRC Snippet:  C: Space Meter
Posted on Feb 13, 2009 5:25 pm
why lame? but they should maybe used a input to pick what drive to check cuz not everyone uses C:

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom