Results 1 to 3 of 3

Thread: [RESOLVED] How to get the disk space available programatically?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    65

    Resolved [RESOLVED] How to get the disk space available programatically?

    Hi

    Is there a way to read the disk space available at a particular time daily and write that value to a log file? (for a particular drive)

    can anyone help me in this?

    Thanks
    srinivas

  2. #2

    Re: How to get the disk space available programatically?

    Code:
    Dim fso As New FileSystemObject
        
        MsgBox fso.GetDrive("c:").AvailableSpace
    remember the value returned by the function is in bytes so to convert to kb you have to divide by 1024

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2007
    Posts
    65

    Re: How to get the disk space available programatically?

    Thank You.

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