Results 1 to 2 of 2

Thread: GetFileSize

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    22

    Dim fileSecu As SECURITY_ATTRIBUTES

    filehandle = CreateFile("c:\temp.jpg", GENERIC_READ, 0, fileSecu, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)

    filesize = GetFileSize(filehandle, 10000000)

    Hi,
    I am trying to use the above two API functions to get the file size of certain jpg file but I am always getting a file handle value of -1 and the filesize -1. What am I missing here? Thanks for any help in advance

    Sparhawk


  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Re : File Size

    Try :

    iNum = fileLen("C:\filename.xxx")

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