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 |
---|
|
Property value
The fully qualified path to the virtual machine's saved state file.
This property value is read-only.
Error codes
Name | Meaning |
---|---|
|
The operation was successful. |
|
The savedStateFilePath parameter is NULL. |
|
The configuration is unknown. |
|
The virtual machine has no associated saved state file. |
|
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 |
|