Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# get free space on drive

using System.IO;

private long GetTotalFreeSpace(string driveName)
{
    foreach (DriveInfo drive in DriveInfo.GetDrives())
    {
        if (drive.IsReady && drive.Name == driveName)
        {
            return drive.TotalFreeSpace;
        }
    }
    return -1;
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: get absolute url c# 
Csharp :: unity editor select object in script 
Csharp :: c# play sound 
Csharp :: C# get all child classes of a class 
Csharp :: print in c# 
Csharp :: c# open file dialog 
Csharp :: c# datagridview clear all rows 
Csharp :: c# get last character of string 
Csharp :: asp.net core get request ip address 
Csharp :: c# datetime current 
Csharp :: how to make among us clone in unity 
Csharp :: csharp string to double 
Csharp :: unity deactive code from code 
Csharp :: c# mysql query 
Csharp :: how to input a double in c# 
Csharp :: move in the direction that player is facing unity 
Csharp :: unity string format time 
Csharp :: swagger authentication bearer .net core 
Csharp :: move towards target unity 
Csharp :: c# System.Resources.MissingManifestResourceException error 
Csharp :: subtract two times c# 
Csharp :: unity list 
Csharp :: change scene unity 
Csharp :: unity gameobject.find not working 
Csharp :: c# date to string yyyy-mm-dd 
Csharp :: find many object with tag unity 
Csharp :: listview disable resize columns 
Csharp :: C# executing assembly path 
Csharp :: stop sound in unity 
Csharp :: clear array c# 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =