$dirsize
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Aug 01, 2008 |
| Last Updated | Aug 01, 2008 |
| Tags | alias custom dir directory dirsize file identifier |
Introduction
| Quote: |
$dirsize(dir,depth) Returns the size of the specified directory and any specified subdirectories. $dirsize supports these properties: bytes ---- returns size in bytes kilo ---- returns size in kilobytes mega ---- returns size in megabytes giga ---- returns size in gigabytes tera ---- returns size in terabytes If no property is given, $dirsize returns the size in bytes. To search JUST the specified directory and no subdirectories, you can specify depth as 1. To search the specified directory and ALL subdirectories, specify depth as 0. |
I think this alias could be useful in some places, but I dunno, use your imagination. :P. Honestly, do NOT search a gigantic directory with 0 as depth (like C:\), otherwise it will just freeze your mIRC (use CTRL+ALT+PauseBreak to get out of it).
I had the original idea for this, but the alias kept going wrong. I had it using $findfile and writing the results to a .txt file, then using a while loop to increase a variable by the amount of each line in the .txt file. Then it removed the file. Sound complicated? You bet. Then Daveoh helped me make a much simpler script. Then I incorporated $properties into it. Then Daveoh said it was long and could be shortened again, and he came up with what's below. And that's the.. uh.. 'history' of this alias. lol
This is my first custom identifier that uses brackets and properties.
mIRC Snippet:
$dirsize
Posted on Aug 1, 2008 10:46 am
Posted on Aug 1, 2008 10:46 am
Long description is long
mIRC Snippet:
$dirsize
Posted on May 22, 2009 5:06 pm
Posted on May 22, 2009 5:06 pm
Okay, stupid question, but how do I use the different properties?
mIRC Snippet:
$dirsize
Posted on May 23, 2009 11:36 am
Posted on May 23, 2009 11:36 am
I swear her said you could view the directories in the different size types, GB, TB, KB & MB.













