« Boot from VHD (Windows 8 Server Developer Preview) | Main | Issue: 1.0.522.103 CX700 (tanjay) OCS / Lync Phones were succeeding only 80% of the time in updating to »
Tuesday
Dec272011

ADD Mount (UnMount) VHD to SendTo Menu

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

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>