Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

C# api to do: vmrun copyFileFromHostToGuest - not working.

$
0
0

Hi All,

 

We are trying to run a simple call to copyFileFromHostToGuest    - to a Windows 2008 Server.

 

We hit a snag where we are probably populationg the wrong values in the command-line:

 


E:\Program Files\VMware\VMware VIX>vmrun -T esx -h https://ipaddresshere/sdk -g u  Administrator -gp password$1 -u root -p anotherpass$1 copyFileFromHostToGuest  "[ha-datacenter/GuestMachines] Win2K8-1/Win2K8-1.vmx"  /home/administrator/Desktop  /vmfs/volume/4ec2e3e3-89c45348-1907-001372587064/GuestMachines/LogFileforDA.txt
Error: A file was not found


We can't see to write the correct  syntax of source/destination and so we fail.
I'd appreciate any suggestion on how to put the right syntax to make this call work.
Thanks for any help on this,
-Sup.


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>