CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How to find....

  1. #1
    Join Date
    Aug 2001
    Location
    Bangalore,India
    Posts
    13

    How to find....

    I am having the Text File.How to find out the Size of the file using vb.
    Pls Help .....

    Ramesh


  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: How to find....


    Msgbox FileLen("c:\autoexec.bat")



    will show a message containing the size of autoexec.bat in bytes

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: How to find....

    Dim filesys,f As Object
    Set filesys = CreateObject("Scripting.FileSystemObject")
    Set f = filesys.GetFolder(folderpath)
    Msgbox f.Size



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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

Featured