The SUBST
command in Windows is used to associate a drive letter with a specific folder, but it does not create or mount virtual hard disks (VHDs). If you want to mount a VHD as a drive letter, you would typically use the DISKPART
command or the Disk Management tool.
Here's an example of how you can mount a VHD using DISKPART
(Replace "C:\Path\to\Your\VHD\File.vhd"
with the actual path to your VHD file):
diskpart
select vdisk file="C:\Path\to\Your\VHD\File.vhd"
attach vdisk
exit
After running these commands, your VHD should be mounted, and you can access it using the assigned drive letter.
hth
Marcin