Run VBoxManage without having to type the program path.

Run VBoxManage without having to type the program path.

Postby mpack » 25. Nov 2017, 10:55

A quick one this time.

Typing the complete path to "VBoxManage.exe" in the command console can be a pain. You can add the VBoxManage folder to the path, but that can be a pain too. People can be tempted into doing nasty things to alleviate this pain, such as copying the VBoxManage.exe file around, but that is not a good idea. A better idea is to have a proxy for VBoxManage somewhere on the existing search path, for example in the "C:\Windows" folder.

The attachment contains a file "VBoxManage.bat" which you can put in the C:\Windows folder or anywhere else on the existing path that you prefer. Thereafter every time you open a command console you only need type "VBoxManage", you don't need the whole path.

Note that the attached batch file assumes that VBoxManage.exe can be found in the folder "C:\Program Files\Oracle\VirtualBox". You'll need to edit the command if you installed VirtualBox somewhere else.
Attachments
VBoxManage.bat.zip
(193 Bytes) Downloaded 70 times
mpack
Site Moderator
 
Posts: 25489
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Return to Windows Hosts

Who is online

Users browsing this forum: No registered users and 2 guests