Page 1 of 1

Get File Size

PostPosted: Sun May 07, 2006 11:33 am
by domino
Is there a way in NB to get the filesize of a file in bytes without plugins or DOS commands?

PostPosted: Mon May 08, 2006 7:48 am
by rcohen
Not to my knowledge. But perhaps this could be a valuable addition to the "FileList" command ?

Dave ?

rcohen

PostPosted: Mon May 08, 2006 10:19 am
by HPW
It may be a bit oversized, but you can use secret weapon newLISP:

(file-info "filename")

Returns a list with:
size,
mode,
device mode,
user id,
group id,
access time
modification time
status change time

:wink:

PostPosted: Mon May 08, 2006 12:15 pm
by Neosoft Support
The rtFileSystemMgt plug-in available from http://www.ronmarie.com/neobook.html includes an action to get the size of a file (among other things).