mIRC Home    About    Download    Register    News    Help

Print Thread
#17159 28/03/03 01:29 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
$file(filename)
Returns information about the specified file.

Properties: size, ctime, mtime, atime

$file(mirc.exe).size returns the file size
when i use that i get 4087808
i assume that must be bytes ? how would you convert that to MB ?

#17160 28/03/03 01:36 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
$bytes($file(mirc.exe).size,m)

#17161 28/03/03 01:40 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
ah thx i just figured that out but your way is much more efficient than mine .. lol


Link Copied to Clipboard