Method GetImageInfo

GImageX

Method Reference (COM)

GetImageInfo

Retrieves information about an image.

GetImageInfo()

 

Parameters

Set the following properties before calling:
Source The source WIM file.
ImageIndex The image index for the required image.

 

Return Value

Success: Returns 0.
Failure: Returns non-zero.

After a successful call the following properties will contain information:
XML
ImageName
Description
Flags
FileCount
DirCount

 

Remarks

None.

 

Related

GetWIMInfo

 

Example

Set objWIM = WScript.CreateObject("GImageX.GImageXCtrl")
objWIM.Source = "test.wim"
objWIM.ImageIndex = 1
objWIM.GetImageInfo
WScript.Echo objWIM.XML
WScript.Echo objWIM.ImageName
WScript.Echo objWIM.Description
WScript.Echo objWIM.DisplayName
WScript.Echo objWIM.DisplayDescription
WScript.Echo objWIM.Flags
WScript.Echo objWIM.FileCount
WScript.Echo objWIM.DirCount

Set objWIM = Nothing