VirtualBox

Opened 4 years ago

#19278 new defect

Vboxmanage.exe fails when using "quoted\folder\path\to"vboxmanage.exe

Reported by: scottgus1 Owned by:
Component: other Version: VirtualBox 6.0.16
Keywords: vboxmanage quotes backslash command line Cc:
Guest type: all Host type: Windows

Description

On a Windows 7 host running 5.2.28, and Windows 10 hosts running 6.0.14, and 6.1.2, this vboxmanage command line:

"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" showvminfo "<vmname>"

finishes correctly.

This command line:

"C:\Program Files\Oracle\VirtualBox"\vboxmanage.exe showvminfo "<vmname>"

errors out with the vboxmanage full help printout and this error:

Syntax error: Invalid command '\vboxmanage.exe'

Note the difference in the command lines:

"C:\Program Files\Oracle\VirtualBox\vboxmanage.exe" showvminfo "<vmname>"  <-- good
"C:\Program Files\Oracle\VirtualBox"\vboxmanage.exe showvminfo "<vmname>"  <-- bad

The difference is in where the double-quotes are put after the space-named folder path. The second command line was made by drag-n-dropping the Virtualbox install folder onto the command window, then adding the backslash and vboxmanage.exe.

These Windows command lines all work: ("calc.exe was copied to the "test dir" folder, "InSpectre.exe" is a stand-alone 3rd-party exe.)

"c:\users\snc\test dir\calc.exe"
"c:\users\snc\test dir"\calc.exe
"c:\users\snc\test dir\inspectre.exe"
"c:\users\snc\test dir"\inspectre.exe

Note that either with the "\ or \...", the command lines work.

It appears that Vboxmanage.exe does not parse the command line correctly.

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use