in reply to How to obtain the size of a remote Winnt4 share

*EDITED to fix File::Find error...*

The two ways that leap to mind are:

  1. Iterate through the share with File::Find, using the -s test to grab each file's size (I found I had to use Math::BigInt on the size counter as well, your milage may vary.
  2. Use Win32::DirSize to do the job; it's easier but you lose a level of control, and I found it slow.
  3. Does that help? I can post sample code for both, but the docs on all these modules have good usage information.

    ----Asim, known to some as Woodrow.