I am getting a VIX_E_NOT_SUPPORTED error when I try calling either DirectoryExistsInGuest or CreateDirectoryInGuest with in my applications.
I basicly want to check for the existance of a directory on the guest and if it does not exist I then want to create it.
I think the problem might be the path, but it is an absolute path and I have no problems using CopyFileFromGuestToHost or+ CopyFileFromGuestToHost +
Here is my code for using +DirectoryExistsInGuestandCreateDirectoryInGuest+ :
protected override bool doesGuestDirectoryExists(string Path)
{
VixCOM.IJob jobHandle = virtualMachine.DirectoryExistsInGuest(Path, null);
int[] propertyIDs = {VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_GUEST_OBJECT_EXISTS,
VixCOM.Constants.VIX_PROPERTY_NONE};
object results = null;
UInt64 err = jobHandle.Wait(propertyIDs, ref results);
if (lib.ErrorIndicatesFailure(err))
Console.WriteLine(String.Format("Error: ", lib.GetErrorText(err, null)));+}protected override UInt64 createGuestDirectory(string Path){VixCOM.IJob jobHandle = virtualMachine.CreateDirectoryInGuest(Path, null, null);UInt64 err = jobHandle.WaitWithoutResults();if (lib.ErrorIndicatesFailure(err)) +Console.WriteLine(String.Format("Error: ", lib.GetErrorText(err, null)));
return err;
}
Any help in figuring what I am missing would be great.