SHARE
TWEET

Untitled

a guest Dec 13th, 2016 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _service = _client.Connect(_hostName);
  2. NameValueCollection nvcFilter = new NameValueCollection();
  3. nvcFilter.Add("Name", "W81x64");
  4. _vm = (VirtualMachine)_client.FindEntityView(typeof(VirtualMachine), null, nvcFilter, null);
  5.  
  6.  string DirectoryPath = @"C:TestFolder";
  7.  NamePasswordAuthentication auth = new NamePasswordAuthentication();
  8.  auth.Password = "admin";
  9.  auth.Username = "password";
  10.  auth.InteractiveSession = false;
  11.  GuestFileManager guestfilemgr = new GuestFileManager(VimClient, _service.FileManager);
  12.  guestfilemgr.MakeDirectoryInGuest(_vm.Runtime.Host,auth, DirectoryPath, true);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top