Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

High Speed Recording Hard Drive Space

VB 2005:

Whilst writing 30Ksamples/sec to my hard drive, I would like to
have a textbox continuously display the "GigaBytes free" on the hard drive.

I have tried the logical disk, free MB performance counter on a 1000ms
timer.tick event but it will not update the textbox more than once.
When the program starts, I get the initial free GB but then no updates every second...

Anyone accomplish this via nother method?

Thanks.






Philip Newman
General Dynamics
Electric Boat
0 Kudos
Message 1 of 2
(3,105 Views)
Sub GetInfo()
        Dim Info As New System.IO.DriveInfo("c:") 'put your drive here
        Dim TotalSize As Long = Info.TotalSize
        Dim FreeSpace As Long = Info.TotalFreeSpace
End Sub


You will want the update timer to run in a seperate thread...
CLA, CTA
0 Kudos
Message 2 of 2
(3,095 Views)