filesize command problem

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
HJC1

filesize command problem

Post by HJC1 » Fri Apr 16, 2004 12:51 am

I have rls 5.02. Is there a problem with the "filesize" command? It works fine on smaller files but will not return an accurate size on a file of 4g. It returns a size of 872651776 for a file size of 3.342G

Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Apr 16, 2004 3:14 am

Could you please print out the contents of the file, here in the forum, so we can analyze it to help you out?
>
>
>
>
>
>
>
>
>
>
I AM KIDDING!.......... :lol:

Sorry, no ideas on that. :cry:
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Kent Rukke
Newbie
Posts: 18
Joined: Fri Mar 19, 2004 4:59 pm
Location: Ephrata, Washington USA
Contact:

Post by Kent Rukke » Mon Apr 19, 2004 3:26 pm

Is the file on one of the hard drives of the PC or on a "Novell" file server? We have had a problem with Novell and files larger than 4GB. It may be fixed now, but we could not copy a file larger than 4GB to a Novell file server. We could copy from one Windows PC to another Windows PC without any problem.

hjc1

Post by hjc1 » Thu Apr 22, 2004 3:35 am

The file is on a PC running Win XP. All other functions seem to work fine except the filesize which returns an incorrect value on very large files.

hjc1

Lumumba

Post by Lumumba » Thu Apr 22, 2004 4:18 pm

Have a try with DOS' dir command.

Run Program> COMSPEC /C dir \ /B /-C > \

ReadLn>\,
..., Output

Afterwards you've to do some of the well known :roll: Bits&Bytes math to get it in MB/GB

Let>Output=%Output%/1024

etc. ...


-----


BTW: you've to replace COMSPEC with:

command.com (Win9x/ME)
or
cmd.exe (WinNT/W2K/XP)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts