Do you want to assign a letter to a drive using a single line of command?
As you may know, Diskpart first appeared in Windows XP and is used to manage partitions and volumes using inline commands. It’s useful in server environment where access to the GUI (Disk Management) interface is limited.
In this tutorial, you will learn how to assign and remove drive letters on Windows 10 using
diskpart in the Command Prompt.
Assign and Remove Drive Letters Using Diskpart
Diskpart won’t work on regular Command Prompt, so you need to open it as administrator.
Once the Command Prompt is open as administrator, run the command
Type in the following command to list all volumes:
The target partition is my USB Drive, so I put in the following command to select it:
select volume 4
To assign a different letter all I have to do is the following:
To remove the letter use the following command:
If you have any questions feel free to leave a comment below
Thanks for sharing and see you in the next tutorial!
Soufiane – Easytutorial.com