File Directory ASP.Net Tutorial

<%@ Page Language="VB" %>


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim drive As New System.IO.DriveInfo("C:\")
        lblDriveName.Text = drive.Name
        lblDriveType.Text = drive.DriveType.ToString()
        lblAvailableFreeSpace.Text = drive.AvailableFreeSpace.ToString()
        lblDriveFormat.Text = drive.DriveFormat
        lblTotalFreeSpace.Text = drive.TotalFreeSpace.ToString()
        lblTotalSize.Text = drive.TotalSize.ToString()
        lblVolumeLabel.Text = drive.VolumeLabel
    End Sub



    Untitled Page


    
    

        
            
            
            
            
            
            
            
        
Drive Name:
                
            
Drive Type:
                
            
Available Free Space:
               
            
Drive Format:
                
            
Total Free Space:
                
            
Total Size:
                
            
Volume Label