![]() The DriveInfo() constructor gets us a single computer drive.There are two ways to get a DriveInfo object (Asad & Ali, 2017): Here are those two steps in detail: # Step 1: Create a DriveInfo instanceīefore we adjust a drive’s volume label we need to get our hands on an instance of the DriveInfo class, which originates from the System.IO namespace. Then we use that object’s VolumeLabel property to change the drive’s label. First we make a DriveInfo instance for the drive whose label we want to change. ![]() To change a drive’s volume label we need to do two things. # Update a drive’s label with C#’s VolumeLabel property
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |