View Single Post
Old 03-08-2014, 07:40 AM   #11
zirkoni
Game Wizzzzzzard
 
zirkoni's Avatar

 
Join Date: Oct 2007
Location: Tampere, Finland
Posts: 508
Default

Quote:
Originally Posted by Japo View Post
In VPC you can just copy files between the host and the guest by drag'n dropping, as long as the optional integration features are installed.
You can also mount the vhd files with Windows disk manager. After mounting the disk image you can browse the files in Windows Explorer just like any HDD.

I have added the mount/unmount scripts in the "SendTo" folder so I can right click on a vhd file to mount it.

Mount script:
Code:
@ECHO OFF
TITLE Mount VHD
ECHO Mount VHD
ECHO.
ECHO.

SETLOCAL

SET DiskPartScript="%TEMP%\DiskpartScript.txt"

ECHO SELECT VDISK FILE="%~1" > %DiskPartScript%
ECHO ATTACH VDISK >> %DiskPartScript%

DiskPart /s %DiskPartScript%

ENDLOCAL
Unmount script:
Code:
@ECHO OFF
TITLE Unmount VHD
ECHO Unmount VHD
ECHO.
ECHO.

SETLOCAL

SET DiskPartScript="%TEMP%\DiskpartScript.txt"

ECHO SELECT VDISK FILE="%~1" > %DiskPartScript%
ECHO DETACH VDISK >> %DiskPartScript%

DiskPart /s %DiskPartScript%

ENDLOCAL
That's what I use to move files between the host and virtual machine.
__________________
www.youtube.com/@zirkoni42
zirkoni is offline                         Send a private message to zirkoni
Reply With Quote