Results 1 to 3 of 3

Thread: Determining File Size using API

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    manila, philippines
    Posts
    6

    Determining File Size using API

    i would like to know if there is an API function that i could use so i could be able to know the size of all files on a target path. actually i would like to mimic how windows computes for the size of a folder or files when you right click on it and chooses the property menu. im creating a program that browse through a drive and folders and copies all files from that drive, which includes nested directories. the problem is that i couldn't use a progress bar since i couldn't compute for FILE SIZE beforehand.

  2. #2
    jim mcnamara
    Guest
    In VB FileLen("myfile") returns the length in bytes of a file.

    Otherwise you have to use an api which employs the FILEINFO structure ( UDT )to return information.

  3. #3
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Try this link http://www.andreavb.f2s.com/tip030001.html

    Its a sample. Hope that can get u going
    -= a peet post =-

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width