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
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