Drives and Directories Management
Learn about managing drives, including gathering information about connected drives and handling drive readiness.
We'll cover the following...
We'll cover the following...
Managing drives
To manage drives, use the DriveInfo
type, which has a static method that returns information about all the drives connected to our computer. Each drive has a drive type. Let’s explore drives:
Step 1: In Program.cs
, write statements to get all the drives and output their name, type, size, available free space, and format, but only if the drive is ready, as shown in the following ...