天天看點

使用 powershell 控制 ABAP 程式一次失敗的嘗試

https://www.autoitscript.com/forum/topic/204729-powershell-com-files/

使用 powershell 控制 ABAP 程式一次失敗的嘗試

https://docs.microsoft.com/en-us/dotnet/framework/interop/registering-assemblies-with-com

C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe ActiveXPosh.dll /codebase

使用 powershell 控制 ABAP 程式一次失敗的嘗試

https://www.sapien.com/forums/viewtopic.php?t=6841

使用 powershell 控制 ABAP 程式一次失敗的嘗試

regasm.exe activexposh.dll /codebaseActiveXPosh in PrimalScript?

我一直在嘗試使用位于 Support Downloads ->Free Components中的 ActiveXPosh,因為我認為它現在已與 PrimalScript 內建。

免費元件檔案夾(v2 和 v3)中的 ActiveXPosh 無法建立對象。

答案:

That component has always been part of PrimalScript. I haven’t looked at it in some time but it should still work. If it fails to create, most likely you didn’t register the COM object or your don’t have a prerequisite installed for it to register properly.

該元件一直是 PrimalScript 的一部分。 如果建立失敗,很可能您沒有注冊 COM 對象,或者您沒有安裝先決條件來正确注冊。

由于免費部分的最後一個版本是 V3,我猜它正在尋找 PS V3 和 .Net 3。

該元件通常安裝在此處:C:\Program Files\Common Files\SAPIEN Common

PrimalScript 安裝程式會正确注冊元件(通常),但手動運作 regasm 版本可能會搞砸(screw things up)。

regasm.exe activexposh.dll /codebase

From your path to regasm you ran the 32 bit version of it.

The 64 bit version is in C:\Windows\Microsoft.NET\Framework64\v2.0.50727 (note \framework64\ versus \framework)

If you want to run and use it on a 64 bit machine from a 64 bit VBScript engine, you need to register it as a 64 bit component.