in reply to Re^2: Getting file attributes/properties using Win32 OLE
in thread Getting file attributes/properties using Win32 OLE

GetObject can return anything, it varies from system to system.

So you're supposed to use some calls (i'm guessing QueryObjectType, see in Win32::OLE and on MSDN ) to find what type of object you have, and then look up the available $obj->Methods and $obj->{Properties} on MSDN.

On my system I get MSHTMLDispHTMLDocument, which is some kind of .NET object ( DispHTMLDocument ), and it doesn't have a FileName or Readable property.

Maybe you can try Win32::OLE Type Library Browser