Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
return file/drive size
Forums
Active Threads
Search
Who's Online
Help
Print Thread
return file/drive size
#
105929
22/12/04
08:19 AM
Joined:
Oct 2003
Posts: 80
BC, Canada
R
RockHound
OP
Babel fish
OP
RockHound
Babel fish
R
Joined:
Oct 2003
Posts: 80
BC, Canada
I have not been around scripting for long time so please bear with me. Im trying to get the $disk(c:).size to return as 64GB. How would I do this with out using a calcultation?
RockHound
Copy Link to Clipboard
Re: return file/drive size
#
105930
22/12/04
08:27 AM
Joined:
Dec 2002
Posts: 11
Mercier, Québec, Canada
D
DixrouE
Pikka bird
DixrouE
Pikka bird
D
Joined:
Dec 2002
Posts: 11
Mercier, Québec, Canada
$bytes($disk(c:).size).suf
DixrouE
Copy Link to Clipboard
Re: return file/drive size
#
105931
22/12/04
08:32 AM
Joined:
Oct 2003
Posts: 80
BC, Canada
R
RockHound
OP
Babel fish
OP
RockHound
Babel fish
R
Joined:
Oct 2003
Posts: 80
BC, Canada
Ty was having hard time trying to remember and find it in help file
RockHound
Copy Link to Clipboard
Re: return file/drive size
#
105932
22/12/04
07:43 PM
Joined:
Aug 2004
Posts: 237
Belgium
L
LethPhaos
Fjord artisan
LethPhaos
Fjord artisan
L
Joined:
Aug 2004
Posts: 237
Belgium
and how to return the used space in gb?
Copy Link to Clipboard
Re: return file/drive size
#
105933
22/12/04
07:54 PM
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
FiberOPtics
Hoopy frood
FiberOPtics
Hoopy frood
Joined:
Feb 2004
Posts: 2,019
Leuven, Belgium
Usage: $hdused(drive)
Examples: //echo -a Used: $hdused(c) * $hdused(d)
alias hdused return $bytes($calc($disk($1).size - $disk($1).free),g).suf
Didn't add any error checking, I leave that for you
Greets
Gone.
Copy Link to Clipboard
Re: return file/drive size
#
105934
22/12/04
07:57 PM
Joined:
Dec 2002
Posts: 3,547
Kent, England
S
SladeKraven
Hoopy frood
SladeKraven
Hoopy frood
S
Joined:
Dec 2002
Posts: 3,547
Kent, England
Code:
$calc($bytes($disk(c:).size) - $bytes($disk(c:).free)) $+ GB
maybe?
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage