Results 1 to 4 of 4

Thread: File size

  1. #1
    Join Date
    Nov 2002
    Location
    Norway
    Posts
    239

    Question Unanswered: File size

    To prevent import of large files to my dB, I need to determine the size of a file using VB code?
    Can anyone help ?

  2. #2
    Join Date
    Jan 2004
    Location
    Islamabad, Pakistan
    Posts
    97

    Re: File size

    Originally posted by vestigo
    To prevent import of large files to my dB, I need to determine the size of a file using VB code?
    Can anyone help ?

    use native funtion of access filelen("Path") which will return the filesie in bytes.

    - Saqib

  3. #3
    Join Date
    Nov 2002
    Location
    Norway
    Posts
    239

    Talking

    Thanks a lot Saqib !

  4. #4
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Using With Application.FileSearch you could search your required file and determine its size using FileSystem.FileLen(anyFile)

    Hope it helps

Posting Permissions

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