mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
I found this script on an old backup cd:
Code:
alias ds {
  say disk: (C:\) $disk(C:\).label
  say size: $disk(C:\).size $bytes($disk(C:\).size),g).suf GB
  say free: $disk(C:\).free $bytes($disk(C:\).free),g).suf GB
}

Whivh gives this output:
Code:
disk: (C:\) System
size: 16779538432 15.63 GB
free: 12242735104 11.4 GB


What part should be changed, to remove the byte size, and only show GB size, if this is possible?


Joined: May 2005
Posts: 4
K
Self-satisified door
Offline
Self-satisified door
K
Joined: May 2005
Posts: 4
I also made it a little more compact (all on one line) for you ; )

Code:
alias ds {
  say Disk: (C:\) $disk(C:\).label Size: $bytes($disk(C:\).size),g).suf $+ GB Free: $bytes($disk(C:\).free),g).suf $+ GB
}


·Kanj¹za¹·
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Exactly what I forgot to mentione, the compact part you made, thank you very much.


Link Copied to Clipboard