Finding disk space on UNC drive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • eric.goforth@gmail.com

    #1

    Finding disk space on UNC drive

    Hello,

    I'm trying to find the available disk space on a folder using VB.NET.
    I tried using:

    Dim Info As New System.IO.Drive Info(sAttachmen tDir)

    Console.WriteLi ne("Total disk space " & Info.TotalSize)
    Console.WriteLi ne("Available disk space " &
    Info.TotalFreeS pace)

    It works well if the path is in the form "c:\mydirectory ", but not when
    it's in the form \\mycomputer\my directory. Any idea on how to do this?

    -Eric

Working...