windows-live-writer

Loading a Type Library via PowerShell and scripting Windows Live Writer

浪子不回头ぞ 提交于 2019-12-10 18:58:32
问题 I'm very new to COM and Windows programming/scripting in general. What I was trying to do is scripting Windows Live Writer; according to the documentation before I can call $o = New-Object -c WindowsLiveWriter.Application I need to load the TLB first, so I should call the add-type command, unfortunately it fails: PS C:\Users\NoWhereMan> add-type windowslivewriter.application Add-Type : c:\Users\NoWhereMan\AppData\Local\Temp\a7ifbimo.0.cs(1) : A namespace does not directly contain members such