N
Nicholas Calvert
Hi,
I’m in the process of transferring a bunch of script from powershell to
ruby to aid interoperability with an existing application and I’m
looking for two ruby equivalents to powershell commands:
PSBASE is a view which returns the raw view of an object.
getText returns the text between the current location and the specified
location in the buffer.
I use these a lot with WMI code in powershell, an example:
$Var1 = path to WMI class or object
$Var1.psbase.gettext(1) > wmi.xml
This would give me pure XML of a WMI object.
Any help greatly appreciated.
I’m in the process of transferring a bunch of script from powershell to
ruby to aid interoperability with an existing application and I’m
looking for two ruby equivalents to powershell commands:
PSBASE is a view which returns the raw view of an object.
getText returns the text between the current location and the specified
location in the buffer.
I use these a lot with WMI code in powershell, an example:
$Var1 = path to WMI class or object
$Var1.psbase.gettext(1) > wmi.xml
This would give me pure XML of a WMI object.
Any help greatly appreciated.