Created
May 23, 2020 14:36
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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