So here's a pretty neat thing, I use VHD's to organize the space on my computer. You can too!
-
Click Start
-
Type in the search bar "Disk par" =>
-
Click first result =>
-
In the program, click "Action" =>
-
Under action menu, click Create VHD =>
-
Make a new folder in your C: drive called VHD =>
-
now in "C:\VHD", add disk1.vhd
-
now finish setup =>
-
attach vhd
-
Now, in The same folder, create a new file "attach_vhd.txt"
-
in that file, place the following
select vdisk file="C:\VHD\coding.vhd"
attach vdisk
exit
-
save it
-
run the following command in PowerShell
schtasks /create /tn "automountvhd" /tr "diskpart.exe /s 'c:\VHD\attach_vhd.txt'" /sc ONLOGON /ru SYSTEM
and you're done
if prefer to use PowerShell instead of
diskpart
can use this commandMount-DiskImage "D:\VHD\MyDrive.vhdx"