I read the user manual and try using sub-command "copyto" to copy file from host to guest. I'm using VirtualBox 5.0 and both host and client are Windows 7 SP1 64-bit.
When I using below command, the VBoxManage always claimed "No destination specified!":
Code: Select all
VBoxManage.exe guestcontrol "Windows 7 (x64)" --username "Michael" --password "test" copyto "E:\Downloads\a.txt" "C:\temp"
Usage:
VBoxManage guestcontrol <uuid|vmname> [--verbose|-v] [--quiet|-q]
[--username <name>] [--domain <domain>]
[--passwordfile <file> | --password <password>]
copyto [common-options]
[--dryrun] [--follow] [-R|--recursive]
<host-src0> [host-src1 [...]] <guest-dst>
copyto [common-options]
[--dryrun] [--follow] [-R|--recursive]
[--target-directory <guest-dst>]
<host-src0> [host-src1 [...]]
Syntax error: No destination specified!
If I change the command to below, the command terminated successful but no file copied to the host folder.
Dose the command is correct? if so, why the file can't copied to the guest?VBoxManage.exe guestcontrol "Windows 7 (x64)" --username "Michael" --password "test" copyto "E:\Downloads\a.txt" --target-directory "C:\temp"
I've searched on google but no related found, so I asked here. Thanks very much!