IVMVirtualMachine::SavedStateFilePath property

The SavedStateFilePath property contains the path to the saved state file.

This property is read-only.

Syntax

HRESULT get_SavedStateFilePath(
  [out] BSTR *savedStateFilePath
);

VB
VMVirtualMachine.SavedStateFilePath( _
  ByRef savedStateFilePath _
)

Property value

The fully qualified path to the virtual machine's saved state file.

This property value is read-only.

Error codes

Name Meaning
S_OK
The operation was successful.
E_POINTER
The savedStateFilePath parameter is NULL.
VM_E_VM_UNKNOWN
The configuration is unknown.
VM_E_VM_NO_SAVED_STATE
The virtual machine has no associated saved state file.
DISP_E_EXCEPTION
An unexpected error has occurred.

Examples

The following example displays the SavedStateFilePath property value of a VMVirtualMachine object.

Set objVS = CreateObject("VirtualServer.Application")
Set objVM = objVS.FindVirtualMachine("Windows Server 2003")

WScript.Echo "VM Name: " & objVM.Name
If objVM.SavedStateFilePath = 0 Then
  WScript.Echo "Saved state file path: [null]"
Else
  WScript.Echo "Saved state file path" & objVM.SavedStateFilePath
End If

Requirements

Product
Microsoft Virtual Server 2005 onWindows Server 2003
Download
Microsoft Virtual Server 2005 R2 SP1 Update onWindows Server 2008orWindows Server 2003
Header
VsComInterfaces.h

See also

IVMVirtualMachine