VMware {code} Community
jdulude
Contributor
Contributor
Jump to solution

VixVM_CopyFileFromGuestToHost

I'm having trouble copying files from my Windows XP machine to my VM running Workstation 6 with Windows XP.

I have successfully connected, powered on and logged into the VM. However when I run :

jobHandle = VixVM_CopyFileFromGuestToHost( vmHandle,

"C:
test.txt", // src name

"C:
test.txt", // dest name

0, // options

VIX_INVALID_HANDLE, // propertyListHan

NULL, // callbackProc

NULL); // clientData

err = VixJob_Wait(jobHandle, VIX_PROPERTY_NONE);

if (VIX_FAILED(err)) {

}

Vix_ReleaseHandle(jobHandle);

I get err == 4 VIX_E_FILE_NOT_FOUND. The file is present on my host machine.

Thanks

0 Kudos
1 Solution

Accepted Solutions
lemke
VMware Employee
VMware Employee
Jump to solution

That function copies a file from the guest (the VM) to the host (where you're running the VIX app). Try VixVM_CopyFileFromHostToGuest().

View solution in original post

0 Kudos
2 Replies
lemke
VMware Employee
VMware Employee
Jump to solution

That function copies a file from the guest (the VM) to the host (where you're running the VIX app). Try VixVM_CopyFileFromHostToGuest().

0 Kudos
jdulude
Contributor
Contributor
Jump to solution

Thanks!

That was a pretty stupid mistake on my part 😛

0 Kudos