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
domino
 
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 ?

rcohen
User avatar
rcohen
 
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:
size,
mode,
device mode,
user id,
group id,
access time
modification time
status change time

:wink:
Hans-Peter
User avatar
HPW
 
Posts: 2510
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 http://www.ronmarie.com/neobook.html includes an action to get the size of a file (among other things).
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5593
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 2 guests