Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _service = _client.Connect(_hostName);
- NameValueCollection nvcFilter = new NameValueCollection();
- nvcFilter.Add("Name", "W81x64");
- _vm = (VirtualMachine)_client.FindEntityView(typeof(VirtualMachine), null, nvcFilter, null);
- string DirectoryPath = @"C:TestFolder";
- NamePasswordAuthentication auth = new NamePasswordAuthentication();
- auth.Password = "admin";
- auth.Username = "password";
- auth.InteractiveSession = false;
- GuestFileManager guestfilemgr = new GuestFileManager(VimClient, _service.FileManager);
- guestfilemgr.MakeDirectoryInGuest(_vm.Runtime.Host,auth, DirectoryPath, true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement