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

copying folders via copyfilefromhosttoguest & guesttohost

$
0
0

 

Does the vix api's CopyFileFromHostToGuest & CopyFileFromGuestToHost actually copy folders as the documentation states.  The example only show a file copy.  I implemented in the past when wanting to copy the folder from host to guest, to just use the win32 FindFirstFile and FindNextFile to find the files in the folder and loop sending them via CopyFileFromHostToGuest.

 

 

However, now I would like to copy a folder from the guest to the host, without me writing a program or script to run on the guest to do the same thing finding all the files in the folder, copying the filenames to a file, send that back and then loop on those filenames calling CopyFileFromGuestToHost, I don't see another way of doing it if the api doesn't actually support copying folders.

 

 

Does anyone know how to copy folders using the vix api's?

 

 

My fingers are crossed that I just missed something simple.

 

 

 

 

 

Thanks,

 

 

Rod

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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