Source language: Translate to:

Get File Size

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Get File Size

Postby domino » Sun May 07, 2006 11:33 am

Is there a way in NB to get the filesize of a file in bytes without plugins or DOS commands?
User avatar
Posts: 275
Joined: Sat Apr 02, 2005 7:11 am
Location: Notts UK

Postby rcohen » Mon May 08, 2006 7:48 am

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

Dave ?

User avatar
Posts: 279
Joined: Sun Apr 03, 2005 7:29 pm
Location: The Smokey Mountains, Tn

Postby HPW » Mon May 08, 2006 10:19 am

It may be a bit oversized, but you can use secret weapon newLISP:

(file-info "filename")

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

User avatar
Posts: 2526
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Neosoft Support » Mon May 08, 2006 12:15 pm

The rtFileSystemMgt plug-in available from includes an action to get the size of a file (among other things).
NeoSoft Support
Neosoft Support
NeoSoft Team
Posts: 5616
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest