[SOLVED] How-to use guestcontol execute on shell commands?
Posted: 6. Jun 2011, 20:11
Hi All,
Host: Windows 7 x64, VBox 4.0.8
Guest: Windows XP
I did this:
> VBoxManage guestcontrol execute "Windows XP VM01" "ipconfig.exe" --arguments " /all" --username Administrator --password 123456 --wait-for stdout
..and this works.
But a similar command FAILs:
> VBoxManage guestcontrol execute "Windows XP VM01" "dir" --arguments " C:\" --username Administrator --password 1234
56 --wait-for stdout
The problem is that in Windows, 'dir' command is not a separate executable, unlike Linux 'ls', but is part of the system shell, "cmd.exe"
Any ideas?
-Technologov
Host: Windows 7 x64, VBox 4.0.8
Guest: Windows XP
I did this:
> VBoxManage guestcontrol execute "Windows XP VM01" "ipconfig.exe" --arguments " /all" --username Administrator --password 123456 --wait-for stdout
..and this works.
But a similar command FAILs:
> VBoxManage guestcontrol execute "Windows XP VM01" "dir" --arguments " C:\" --username Administrator --password 1234
56 --wait-for stdout
The problem is that in Windows, 'dir' command is not a separate executable, unlike Linux 'ls', but is part of the system shell, "cmd.exe"
Any ideas?
-Technologov