Get File Size

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Locked
User avatar
domino
Posts: 275
Joined: Sat Apr 02, 2005 7:11 am
Location: Notts UK

Get File Size

Post by domino »

Is there a way in NB to get the filesize of a file in bytes without plugins or DOS commands?
User avatar
rcohen
Posts: 279
Joined: Sun Apr 03, 2005 7:29 pm
Location: The Smokey Mountains, Tn
Contact:

Post by rcohen »

Not to my knowledge. But perhaps this could be a valuable addition to the "FileList" command ?

Dave ?

rcohen
User avatar
HPW
Posts: 2571
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany
Contact:

Post 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:
Hans-Peter
Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Post 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).
NeoSoft Support
Locked