Top

/hddfree v0.2


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  3.0 (of 1 scores)
Date Added  Oct 17, 2008
Last Updated  Oct 17, 2008
Tags  channel  counter  echo  info 

Introduction

This is the second version of my /hddfree.
I've deleted the old one from my remote and coded a new one. ;)

Theres nothing much to say, how this snippet works:

1.) Alt + R and copy this snippet into the remote section
2.) Press OK
3.) type /hddfree [-m]
3.+) The -m switch posts the information in the active channel.

It posts something like this:
(HDDFree) C:\ Windows - (179.82GB/298.08GB)
(HDDFree) HDDs: 1 (179.82GB/301.61GB) - Removable: 4 - CDROM: 2

Have fun with.


Grab the Code

alias hddfree {
  ;© Nimes` @ irc.abjects.net #k1ng
  ;v0.2
  if ($1 == -m) { var %hddf.cmd = msg $active }
  else { var %hddf.cmd = echo -ag }
  var %i = 1 
  while (%i <= $disk(0)) {
    if ($disk(%i).type == fixed) {
      %hddf.cmd (HDDFree) $disk(%i).path $disk(%i).label - ( $+ $+($bytes($disk(%i).free,g).suf,/,$bytes($disk(%i).size,g).suf) $+ )
      inc %hddf.hdds
    }
    if ($disk(%i).type == removable) { inc %hddf.rem }
    if ($disk(%i).type == cdrom) { inc %hddf.cdrom }
    inc %hddf.max $disk(%i).size
    inc %hddf.free $disk(%i).free
    inc %i
  }
  var %x = $+($bytes(%hddf.free,g).suf,/,$bytes(%hddf.max,g).suf)
  %hddf.cmd (HDDFree) HDDs: %hddf.hdds ( $+ %x $+ )  - Removable: $iif(%hddf.rem,$v1,0) - CDROM: $iif(%hddf.cdrom,$v1,0)
  unset %hddf*
}

Comments

  (2)  RSS
napa182
Comments: 1,455
 
mIRC Snippet:  /hddfree v0.2
Posted on Oct 17, 2008 1:25 pm
well if this in an update then why not update ur old snippet like it states in the rules.

Quote:
Your snippet will be deleted if you break any of the following rules:

DO NOT post new versions as new snippets. You must edit your previous snippet.
(If you add Snippet v1.0 and Snippet v2.0 as two snippets Snippet v2.0 will be deleted.)

EL
Comments: 1,125
 
mIRC Snippet:  /hddfree v0.2
Posted on Oct 17, 2008 2:03 pm
Umm ya what steve said and its a bit useless imo.Neat i suppose.

Commenting Options

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

  
Bottom