Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a commandline interface to load all options and configuration so that it can be used from batch scripts #14

Open
tathastu871 opened this issue Jul 26, 2022 · 0 comments

Comments

@tathastu871
Copy link

I tried below script from usb:

xcopy /S /E /Q /Y %~d0\\VirtualMachineUSBBoot "%USERPROFILE%\Desktop\VirtualMachineUSBBoot\"
del /s /f /q "%USERPROFILE%\Desktop\VirtualMachineUSBBoot\Virtual Machine USB Boot.cfg"
del /s /f /q "%USERPROFILE%\Desktop\VirtualMachineUSBBoot\Virtual Machine USB Boot.vml"
(
echo Width=575
echo Height=287
echo Left=2892
echo Top=3365
echo #ColumnWidth=24
echo #ColumnShow=1
echo VMNameColumnWidth=148
echo VMNameColumnShow=1
echo DriveColumnWidth=269
echo DriveColumnShow=1
echo SecondDriveColumnWidth=275
echo SecondDriveColumnShow=0
echo WaitTimeToFlush=500
echo LockTheVolumes=1
echo ShowSecondDriveOption=0
echo DefaultVMType=VirtualBox
echo ListOnlyUSBDrives=1
echo AutomaticFont=1
echo FontName=Tahoma
echo FontSize=10
echo FontBold=0
echo FontItalic=0
echo FontUnderline=0
echo FontStrikeOut=0
echo FontColor=-16777208
echo FontScript=1
echo ShowTrayIcon=0
echo EscapeKeyClosesMain=1
echo KeyCombStart=Shift+Ctrl+V
echo CurrLanguageFile=ENGLISH
echo VirtualBoxPath=%USERPROFILE%\Desktop\PortableVbox\Portable-VirtualBox\Portable-VirtualBox.exe
echo MethodToUpdateTheVM=Autodetect
echo useLoadedFromInstalled=0
echo LoadNetPortable=0
echo LoadUSBPortable=0
echo PrecacheVBFiles=0
echo PrestartVBExeFiles=0
echo RemoveDriveAfterClosing=0
echo QemuPath=C:\Program Files\QEMU\qemu-system-x86_64.exe
echo HideConsoleWindow=1
echo EmulationBusType=1
echo QemuDefaultParameters=-name "USB Boot Test" -boot c -m 512 -soundhw sb16
echo LastSelected=0
echo DriveMessageShowed=1
echo StartMessageShowed=0
echo PreviousDPI=96
) >> "%USERPROFILE%\Desktop\VirtualMachineUSBBoot\Virtual Machine USB Boot.cfg"

(
echo [1]
echo Type=VirtualBox
echo ModeToLoadVM=PathToVM
echo ExeParams=
echo VMID=dbddbce1-a764-4ca5-a593-353d9de587b1
echo VMName=Boot
echo PathToVM=%USERPROFILE%\Desktop\PortableVbox\Boot\Boot.vbox
echo FirstDriveName=SanDisk Cruzer Blade, 29.3 GB
echo FirstDriveBusType=USB
echo UseHostIOCache=On
echo EnableCPUVirtualization=On
echo Run=Normal
echo Priority=High
echo.
) >> "%USERPROFILE%\Desktop\VirtualMachineUSBBoot\Virtual Machine USB Boot.vml"

pause

But when opening it was'nt loading config specified in those cfg and vml files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant