Tuesday
Dec272011
ADD Mount (UnMount) VHD to SendTo Menu
Tuesday, December 27, 2011 at 04:52PM
open up an Explorer window, and then paste in the following to the address bar.
%APPDATA%\Microsoft\Windows\SendTo
Past in the following batch files
MountVHD.BAT
@ECHO OFF
SETLOCAL
SET DiskPartScript="%TEMP%DiskpartScript.txt"
ECHO SELECT VDISK FILE="%~1" > %DiskPartScript%
ECHO ATTACH VDISK >> %DiskPartScript%
DiskPart /s %DiskPartScript%
ENDLOCAL
UnmountVHD.Bat
@ECHO OFF
SETLOCAL
SET DiskPartScript="%TEMP%DiskpartScript.txt"
ECHO SELECT VDISK FILE="%~1" > %DiskPartScript%
ECHO DETACH VDISK >> %DiskPartScript%
DiskPart /s %DiskPartScript%
ENDLOCAL
Reader Comments