Skip to content

Instantly share code, notes, and snippets.

@JMVS
Created May 23, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JMVS/22851d6635453140d2ce458ee89945e0 to your computer and use it in GitHub Desktop.
Save JMVS/22851d6635453140d2ce458ee89945e0 to your computer and use it in GitHub Desktop.
Simple batch file to convert VMDK disk files to VHD format using VirtualBox
@echo off
REM Simple batch to convert VMDK disk files to VHD format using VirtualBox
REM Just drag and drop the source file to the batch file to start convertion
Set PathVBox=%VBOX_MSI_INSTALL_PATH%
Set Source=%1
Set DestFile=%~n1
Set Dest="%~d1%~p1%DestFile%.vhd"
Echo Converting "%DestFile%" to VHD format:
"%PathVBox%VBoxManage.exe" clonehd --format VHD %Source% %Dest%
Echo.
Echo End.
TIMEOUT 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment