public void CreateDirectoryInGuest(string guestPathName) { ConsoleOutput.WriteLine(" Creating directory 'Remote:{0}'", guestPathName); if (!_simulationOnly) { _vm.CreateDirectoryInGuest(guestPathName); } }
/// <summary> /// /// </summary> /// <returns></returns> public override bool Execute() { using (VMWareVirtualHost host = GetConnectedHost()) { using (VMWareVirtualMachine virtualMachine = OpenVirtualMachine(host)) { LoginGuest(virtualMachine); Log.LogMessage(string.Format("Creating guest directory '{0}'", _guestPathName)); virtualMachine.CreateDirectoryInGuest(_guestPathName, _createDirectoryTimeout); } } return(true); }