The Windows CMD command mountvol is a command line utility used to manage the volume mount points on a computer. It is a powerful tool that allows you to create, delete, and modify mount points on your computer. This command is available in all versions of Windows, from Windows XP to Windows 10.

Mount points are used to connect a drive letter to a directory on your computer. This allows you to access the directory from the command line or from a program. Mountvol is a useful tool for managing mount points, as it allows you to quickly create, delete, and modify mount points without having to manually edit the registry.

Mountvol Syntax

The syntax for the mountvol command is as follows:

  • mountvol [driveletter:]path [driveletter:]

The first argument is the path to the directory that you want to mount. The second argument is the drive letter that you want to assign to the directory. For example, if you wanted to mount the directory C:\MyFolder to the drive letter Z:, you would use the following command:

  • mountvol Z: C:\MyFolder

You can also use the mountvol command to delete a mount point. To do this, you would use the following syntax:

  • mountvol [driveletter:] /D

This command will delete the mount point associated with the specified drive letter. For example, if you wanted to delete the mount point associated with the drive letter Z:, you would use the following command:

  • mountvol Z: /D

Mountvol Options

The mountvol command has several options that can be used to modify the behavior of the command. These options are as follows:

Option Description
/L Lists all of the mount points on the computer.
/E Creates a mount point that is persistent across reboots.
/P Creates a mount point that is not persistent across reboots.
/D Deletes a mount point.

Mountvol Examples

The following are some examples of how the mountvol command can be used:

  • To list all of the mount points on the computer, use the following command: mountvol /L
  • To create a persistent mount point for the directory C:\MyFolder to the drive letter Z:, use the following command: mountvol Z: C:\MyFolder /E
  • To create a non-persistent mount point for the directory C:\MyFolder to the drive letter Z:, use the following command: mountvol Z: C:\MyFolder /P
  • To delete the mount point associated with the drive letter Z:, use the following command: mountvol Z: /D

Conclusion

The Windows CMD command mountvol is a powerful tool that allows you to manage the mount points on your computer. It allows you to quickly create, delete, and modify mount points without having to manually edit the registry. The mountvol command has several options that can be used to modify the behavior of the command, and it can be used with various examples to accomplish a variety of tasks.

FAQ

How to mount disk from cmd?

To mount a disk as a folder using the command line, open the Command Prompt and type “subst X: C:\path\to\drive” where X is the desired drive letter and C:\path\to\drive is the path of the disk you want to mount. This allows you to access the mounted disk as if it were a folder on your computer.

How do you mount a volume in Windows command?

To mount a volume in Windows command, open Command Prompt as Administrator, then type “mountvol [DriveLetter] [VolumeName]” where [DriveLetter] is the desired drive letter (e.g., G:) and [VolumeName] is the volume name from Step 2.

What does Mountvol do?

Mountvol is a command-line tool in Windows that allows you to create, delete, list, and link volume mount points. With Mountvol, you can manage volume mount points without the need for a drive letter. It is a convenient way to manage storage and access files efficiently on your system.

How do I see mounted volumes in Windows?

To view mounted volumes in Windows 11, Windows 10, or Windows 8, open File Explorer by pressing Windows key + E. Then, select This PC in the left pane, and all mounted drives will be displayed on the right side. This screenshot showcases a typical This PC view with three mounted drives.

Leave a Reply